From: Zac Medico Date: Sat, 11 Jun 2011 03:38:02 +0000 (-0700) Subject: bintree: verify that default REPO is legit X-Git-Tag: v2.2.0_alpha40~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4f58705b07a948d216eba18013af483f63d34a26;p=portage.git 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. --- 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