summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-06-10 20:38:02 -0700
committerZac Medico <zmedico@gentoo.org>2011-06-10 20:38:02 -0700
commit4f58705b07a948d216eba18013af483f63d34a26 (patch)
tree3129fd635296f14232a672850b71b67a3e8d1280
parentc1ea850b40d48ac1610e203f517b008e6461865f (diff)
downloadportage-4f58705b07a948d216eba18013af483f63d34a26.tar.gz
portage-4f58705b07a948d216eba18013af483f63d34a26.tar.bz2
portage-4f58705b07a948d216eba18013af483f63d34a26.zip
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.
-rw-r--r--pym/portage/dbapi/bintree.py2
1 files changed, 1 insertions, 1 deletions
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