From: Zac Medico Date: Mon, 20 Dec 2010 00:42:31 +0000 (-0800) Subject: prepos_order: avoid duplicates from aliases X-Git-Tag: v2.2.0_alpha10~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2c1083a543ed842c310d7be9ed6888d7eaf7213f;p=portage.git prepos_order: avoid duplicates from aliases --- diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 1f2e48012..281173323 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -330,7 +330,10 @@ class RepoConfigLoader(object): location_map[r.location] = name treemap[name] = r.location - prepos_order = [repo.name for repo in prepos.values() if repo.location is not None] + # filter duplicates from aliases, by only including + # items where repo.name == key + prepos_order = [repo.name for key, repo in prepos.items() \ + if repo.name == key and repo.location is not None] prepos_order.sort(key=repo_priority, reverse=True) if portdir in location_map: