summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-17 09:57:33 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-17 09:57:33 +0000
commit9202f5c50d4eeec794d5096620ddf92b0bea73e6 (patch)
tree5894693b92c5e9cd11f3b625b205d2e1754e2a94 /pym
parente7934042a43772f63b4c8c53414e82f9eba89e3d (diff)
downloadportage-9202f5c50d4eeec794d5096620ddf92b0bea73e6.tar.gz
portage-9202f5c50d4eeec794d5096620ddf92b0bea73e6.tar.bz2
portage-9202f5c50d4eeec794d5096620ddf92b0bea73e6.zip
Collapse two repoman PORTAGE_CALLER conditionals into one.
svn path=/main/trunk/; revision=3909
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/pym/portage.py b/pym/portage.py
index be2d8ed54..e60699d80 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1077,6 +1077,12 @@ class config:
self.lookuplist=self.configlist[:]
self.lookuplist.reverse()
+ self.pusedict = {}
+ self.pkeywordsdict = {}
+ self.punmaskdict = {}
+ abs_user_config = os.path.join(config_root,
+ USER_CONFIG_PATH.lstrip(os.path.sep))
+
pmask_locations = [os.path.join(self["PORTDIR"], "profiles")]
pmask_locations.extend(self.profiles)
@@ -1086,8 +1092,6 @@ class config:
locations = [self["PORTDIR"] + "/profiles"]
overlay_profiles = []
else:
- abs_user_config = os.path.join(config_root,
- USER_CONFIG_PATH.lstrip(os.path.sep))
locations = [os.path.join(self["PORTDIR"], "profiles"),
abs_user_config]
overlay_profiles = []
@@ -1099,14 +1103,9 @@ class config:
locations += overlay_profiles
pmask_locations.extend(overlay_profiles)
- if os.environ.get("PORTAGE_CALLER","") != "repoman":
- pmask_locations.append(abs_user_config)
- if os.environ.get("PORTAGE_CALLER","") == "repoman":
- self.pusedict = {}
- self.pkeywordsdict = {}
- self.punmaskdict = {}
- else:
+ if os.environ.get("PORTAGE_CALLER","") != "repoman":
+ pmask_locations.append(abs_user_config)
pusedict = grabdict_package(
os.path.join(abs_user_config, "package.use"), recursive=1)
self.pusedict = {}