From 9202f5c50d4eeec794d5096620ddf92b0bea73e6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 17 Jul 2006 09:57:33 +0000 Subject: Collapse two repoman PORTAGE_CALLER conditionals into one. svn path=/main/trunk/; revision=3909 --- pym/portage.py | 17 ++++++++--------- 1 file 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 = {} -- cgit v1.2.3-1-g7c22