Make repoman ignore sets.conf. v2.2_rc91
authorZac Medico <zmedico@gentoo.org>
Thu, 7 Oct 2010 21:30:23 +0000 (14:30 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 7 Oct 2010 21:30:23 +0000 (14:30 -0700)
pym/portage/repository/config.py

index fd3eb183b9752191e558f7162a8c691830e8d41a..35ddd140a07be9bd49b89ee5d7966b0a84cd4d45 100644 (file)
@@ -460,6 +460,7 @@ class RepoConfigLoader(object):
 def load_repository_config(settings):
        #~ repoconfigpaths = [os.path.join(settings.global_config_path, "repos.conf")]
        repoconfigpaths = []
-       repoconfigpaths.append(os.path.join(settings["PORTAGE_CONFIGROOT"],
-               USER_CONFIG_PATH, "repos.conf"))
+       if settings.local_config:
+               repoconfigpaths.append(os.path.join(settings["PORTAGE_CONFIGROOT"],
+                       USER_CONFIG_PATH, "repos.conf"))
        return RepoConfigLoader(repoconfigpaths, settings)