From: Zac Medico Date: Fri, 1 May 2009 18:34:59 +0000 (-0000) Subject: Fix logic error which prevents repos.conf [DEFAULT] section from applying X-Git-Tag: v2.2_rc32~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23f30f820405f16fbcadbd7dbcc7aa31eccba4fb;p=portage.git Fix logic error which prevents repos.conf [DEFAULT] section from applying to repos that don't have their own section. Thanks to Markos Chandras for reporting. svn path=/main/trunk/; revision=13578 --- 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")