Avoid 'Unavailable repository' with aliases.
authorZac Medico <zmedico@gentoo.org>
Fri, 1 Oct 2010 20:27:05 +0000 (13:27 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 1 Oct 2010 20:27:05 +0000 (13:27 -0700)
pym/portage/repository/config.py

index 0c924e7d556e8393561502858ed5cdf9e06e269f..be202c3922f5b902554d5ef8eab8d56fe7e78ccb 100644 (file)
@@ -297,6 +297,10 @@ class RepoConfigLoader(object):
                                else:
                                        repo.masters = ()
                        else:
+                               if repo.masters and isinstance(repo.masters[0], RepoConfig):
+                                       # This one has already been processed
+                                       # because it has an alias.
+                                       continue
                                master_repos = []
                                for master_name in repo.masters:
                                        if master_name not in prepos: