summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-05-01 18:34:59 +0000
committerZac Medico <zmedico@gentoo.org>2009-05-01 18:34:59 +0000
commit23f30f820405f16fbcadbd7dbcc7aa31eccba4fb (patch)
tree97a02e9b3bc4f9652c86fd21a214bc84692767ad
parentcd123576b4052d996956df65d9fd2e56d57166b1 (diff)
downloadportage-23f30f820405f16fbcadbd7dbcc7aa31eccba4fb.tar.gz
portage-23f30f820405f16fbcadbd7dbcc7aa31eccba4fb.tar.bz2
portage-23f30f820405f16fbcadbd7dbcc7aa31eccba4fb.zip
Fix logic error which prevents repos.conf [DEFAULT] section from applying
to repos that don't have their own section. Thanks to Markos Chandras <hwoarang@g.o> for reporting. svn path=/main/trunk/; revision=13578
-rw-r--r--pym/portage/dbapi/porttree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 318d00c11..2fc55ccc9 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -227,7 +227,7 @@ class portdbapi(dbapi):
if local_repo_configs is not None:
if repo_name is not None:
loc_repo_conf = local_repo_configs.get(repo_name)
- else:
+ if loc_repo_conf is None:
loc_repo_conf = default_loc_repo_config
layout_filename = os.path.join(path, "metadata/layout.conf")