Fix repoman to grab categores, arch.list, and package.mask from the proper locations...
authorZac Medico <zmedico@gentoo.org>
Wed, 17 May 2006 20:55:45 +0000 (20:55 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 17 May 2006 20:55:45 +0000 (20:55 -0000)
svn path=/main/trunk/; revision=3368

pym/portage.py

index fbf92191b383b7aa416d13067c82fb288735cb19..2a3ec7baa3248745d8deb5161a14553940646850 100644 (file)
@@ -1130,12 +1130,10 @@ class config:
                        self.lookuplist=self.configlist[:]
                        self.lookuplist.reverse()
 
-                       if os.environ.get("PORTAGE_CALLER","") == "repoman":
+                       if os.environ.get("PORTAGE_CALLER","") == "repoman" and \
+                               os.environ.get("PORTDIR_OVERLAY","") == "":
                                # repoman shouldn't use local settings.
                                locations = [self["PORTDIR"] + "/profiles"]
-                               self.pusedict = {}
-                               self.pkeywordsdict = {}
-                               self.punmaskdict = {}
                        else:
                                abs_user_config = os.path.join(config_root,
                                        USER_CONFIG_PATH.lstrip(os.path.sep))
@@ -1146,6 +1144,11 @@ class config:
                                        if os.path.isdir(ov+"/profiles"):
                                                locations.append(ov+"/profiles")
 
+                       if os.environ.get("PORTAGE_CALLER","") == "repoman":
+                               self.pusedict = {}
+                               self.pkeywordsdict = {}
+                               self.punmaskdict = {}
+                       else:
                                pusedict = grabdict_package(
                                        os.path.join(abs_user_config, "package.use"), recursive=1)
                                self.pusedict = {}