Repository : http://git.fedorahosted.org/cgit/
On branch : v1.4
commit d03bebd177cd12d3f7091ec52d075942ad4c5191 Author: Matt Domsch Matt_Domsch@dell.com Date: Sat Jun 15 20:31:37 2013 -0500
umdl: don't make duplicate Repository objects
While it's not completely illegal to have 2 or more Repository objects pointing at the same Directory (witness the old Fedora Core pointers, which had two different mirrorlist request URLs, one stating fc<#> and one stating f<#> - in general we don't need them, and in specific we don't want umdl automatically making them. So don't let it.
server/update-master-directory-list | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/server/update-master-directory-list b/server/update-master-directory-list index 1e8b20d..65dd641 100755 --- a/server/update-master-directory-list +++ b/server/update-master-directory-list @@ -250,6 +250,10 @@ def make_repository(dir, dname, category, product_id, topdir): if ver is None or arch is None: return None
+ # stop making duplicate Repository objects. + if len(dir.repositories) > 0: + return None + prefix = repo_prefix(path, category, ver) try: # historically, Repository.name was a longer string with