diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-07-17 10:34:28 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-07-17 10:34:28 +0000 |
commit | cdbc6a7b2bbf0fb02976607913426062ad99c5af (patch) | |
tree | 64fa115c892cf6e780397b87352aae71c5579e6d | |
parent | 9202f5c50d4eeec794d5096620ddf92b0bea73e6 (diff) | |
download | portage-cdbc6a7b2bbf0fb02976607913426062ad99c5af.tar.gz portage-cdbc6a7b2bbf0fb02976607913426062ad99c5af.tar.bz2 portage-cdbc6a7b2bbf0fb02976607913426062ad99c5af.zip |
Fix categories and arch.list handling for repoman with overlays so that /etc/portage is not used.
svn path=/main/trunk/; revision=3910
-rw-r--r-- | pym/portage.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/pym/portage.py b/pym/portage.py index e60699d80..60dd48f97 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1083,17 +1083,13 @@ class config: abs_user_config = os.path.join(config_root, USER_CONFIG_PATH.lstrip(os.path.sep)) + # locations for "categories" and "arch.list" files + locations = [os.path.join(self["PORTDIR"], "profiles")] pmask_locations = [os.path.join(self["PORTDIR"], "profiles")] pmask_locations.extend(self.profiles) - if os.environ.get("PORTAGE_CALLER","") == "repoman" and \ - os.environ.get("PORTDIR_OVERLAY","") == "": - # repoman shouldn't use local settings. - locations = [self["PORTDIR"] + "/profiles"] - overlay_profiles = [] - else: - locations = [os.path.join(self["PORTDIR"], "profiles"), - abs_user_config] + if os.environ.get("PORTAGE_CALLER","") != "repoman" or \ + os.environ.get("PORTDIR_OVERLAY","") != "": overlay_profiles = [] for ov in self["PORTDIR_OVERLAY"].split(): ov = normalize_path(ov) @@ -1105,6 +1101,7 @@ class config: pmask_locations.extend(overlay_profiles) if os.environ.get("PORTAGE_CALLER","") != "repoman": + locations.append(abs_user_config) pmask_locations.append(abs_user_config) pusedict = grabdict_package( os.path.join(abs_user_config, "package.use"), recursive=1) |