Fix logic error which prevents repos.conf [DEFAULT] section from applying
authorZac Medico <zmedico@gentoo.org>
Fri, 1 May 2009 18:34:59 +0000 (18:34 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 1 May 2009 18:34:59 +0000 (18:34 -0000)
to repos that don't have their own section. Thanks to Markos Chandras
<hwoarang@g.o> for reporting.

svn path=/main/trunk/; revision=13578

pym/portage/dbapi/porttree.py

index 318d00c112baf4375562800d4e39b0c87b68dde2..2fc55ccc924801d1dbe9965837fa82994cc5b2b6 100644 (file)
@@ -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")