diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-12-19 16:42:31 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-12-19 16:42:31 -0800 |
commit | 2c1083a543ed842c310d7be9ed6888d7eaf7213f (patch) | |
tree | 18ac1a293b94ef746e80248423045aaf33c13b3d /pym/portage | |
parent | 58a9320158c63f5cbe2e452af89a66038fd83a73 (diff) | |
download | portage-2c1083a543ed842c310d7be9ed6888d7eaf7213f.tar.gz portage-2c1083a543ed842c310d7be9ed6888d7eaf7213f.tar.bz2 portage-2c1083a543ed842c310d7be9ed6888d7eaf7213f.zip |
prepos_order: avoid duplicates from aliases
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/repository/config.py | 5 |
1 files changed, 4 insertions, 1 deletions
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: |