From d1b230a62f6a58b8e06cfbae2105a5a269d37b24 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 8 Jul 2011 09:36:17 -0700 Subject: [PATCH] RepoConfig: ignore missing name if no location This happens if there is an orphan entry in repos.conf. --- pym/portage/repository/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(): -- 2.26.2