summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-03-02 20:03:40 +0000
committerZac Medico <zmedico@gentoo.org>2010-03-02 20:03:40 +0000
commit3530a7f3258d96cf878297328968381217a0d981 (patch)
tree05adb758dd30bdf808159401ccf7ba8e38573baa /bin
parent73f0ee9047160afb5dafd99f062fa58f6b4bfbbc (diff)
downloadportage-3530a7f3258d96cf878297328968381217a0d981.tar.gz
portage-3530a7f3258d96cf878297328968381217a0d981.tar.bz2
portage-3530a7f3258d96cf878297328968381217a0d981.zip
Clean up config incrementals handling. (trunk r15309)
svn path=/main/branches/2.1.7/; revision=15544
Diffstat (limited to 'bin')
-rwxr-xr-xbin/repoman13
1 files changed, 6 insertions, 7 deletions
diff --git a/bin/repoman b/bin/repoman
index 29832fd3d..45f22d632 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -91,8 +91,11 @@ bad = create_color_func("BAD")
# A sane umask is needed for files that portage creates.
os.umask(0o22)
-repoman_settings = portage.config(local_config=False,
- config_incrementals=portage.const.INCREMENTALS)
+# Repoman sets it's own ACCEPT_KEYWORDS and we don't want it to
+# behave incrementally.
+repoman_incrementals = tuple(x for x in \
+ portage.const.INCREMENTALS if x != 'ACCEPT_KEYWORDS')
+repoman_settings = portage.config(local_config=False)
repoman_settings.lock()
if repoman_settings.get("NOCOLOR", "").lower() in ("yes", "true") or \
@@ -1749,16 +1752,12 @@ for x in scanlist:
if dep_settings is None:
dep_settings = portage.config(
config_profile_path=prof.abs_path,
- config_incrementals=portage.const.INCREMENTALS,
+ config_incrementals=repoman_incrementals,
local_config=False,
env=env)
if options.without_mask:
dep_settings.pmaskdict.clear()
arch_caches[prof.sub_path] = dep_settings
- # Protect ACCEPT_KEYWORDS from config.regenerate()
- # (just in case)
- dep_settings.incrementals = tuple(v for v in \
- dep_settings.incrementals if v != 'ACCEPT_KEYWORDS')
xmatch_cache_key = (prof.sub_path, tuple(groups))
xcache = arch_xmatch_caches.get(xmatch_cache_key)