aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-07-08 09:36:17 -0700
committerZac Medico <zmedico@gentoo.org>2011-07-08 09:36:17 -0700
commitd1b230a62f6a58b8e06cfbae2105a5a269d37b24 (patch)
tree1f24a8431d61fa06c30897e1a612081ec3624a76 /pym/portage/repository
parentgetportageversion: omit implicit -r0 for libc (diff)
downloadportage-d1b230a62f6a58b8e06cfbae2105a5a269d37b24.tar.gz
portage-d1b230a62f6a58b8e06cfbae2105a5a269d37b24.tar.bz2
portage-d1b230a62f6a58b8e06cfbae2105a5a269d37b24.zip
RepoConfig: ignore missing name if no location
This happens if there is an orphan entry in repos.conf.
Diffstat (limited to 'pym/portage/repository')
-rw-r--r--pym/portage/repository/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index 38ed6a16d..4461901a4 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -290,7 +290,9 @@ class RepoConfigLoader(object):
ignored_repos = tuple((repo_name, tuple(paths)) \
for repo_name, paths in ignored_map.items())
- self.missing_repo_names = frozenset(repo.location for repo in prepos.values() if repo.missing_repo_name)
+ self.missing_repo_names = frozenset(repo.location
+ for repo in prepos.values()
+ if repo.location is not None and repo.missing_repo_name)
#Parse layout.conf and read masters key.
for repo in prepos.values():