summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/repository/config.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index 36dee484a..1f2e48012 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -299,6 +299,16 @@ class RepoConfigLoader(object):
masters = None
repo.masters = masters
+ aliases = layout_data.get('aliases')
+ if aliases and aliases.strip():
+ aliases = aliases.split()
+ else:
+ aliases = None
+ if aliases:
+ if repo.aliases:
+ aliases.extend(repo.aliases)
+ repo.aliases = tuple(sorted(set(aliases)))
+
#Take aliases into account.
new_prepos = {}
for repo_name, repo in prepos.items():