From 4f58705b07a948d216eba18013af483f63d34a26 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 10 Jun 2011 20:38:02 -0700 Subject: bintree: verify that default REPO is legit We need to check the RepoConfig.missing_repo_name attribute to make sure the repo_name is really defined. --- pym/portage/dbapi/bintree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index 7af152cd7..36bf735f6 100644 --- a/pym/portage/dbapi/bintree.py +++ b/pym/portage/dbapi/bintree.py @@ -284,7 +284,7 @@ class binarytree(object): # pkgindex header already defines these keys, then # they will appropriately override our defaults. main_repo = self.settings.repositories.mainRepo() - if main_repo is not None: + if main_repo is not None and not main_repo.missing_repo_name: self._pkgindex_default_header_data["repository"] = \ main_repo.name -- cgit v1.2.3-1-g7c22