summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-04 21:49:17 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-04 21:49:17 +0000
commit92ea19a9e671d0317699ccabd6ecfff511f6c5a2 (patch)
treedd72014b31badfba3b9ff291d5b985901ca7bba5
parent6eb1ca2326c2021f4106b6a39e784b968746a9a6 (diff)
downloadportage-92ea19a9e671d0317699ccabd6ecfff511f6c5a2.tar.gz
portage-92ea19a9e671d0317699ccabd6ecfff511f6c5a2.tar.bz2
portage-92ea19a9e671d0317699ccabd6ecfff511f6c5a2.zip
For bug #157134, make `emerge --digest` automatically reload the config with FEATURES=digest enabled globally.
svn path=/main/trunk/; revision=5173
-rwxr-xr-xbin/emerge7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/emerge b/bin/emerge
index 0651da960..1c20cc14e 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -4456,6 +4456,13 @@ def emerge_main():
tmpcmdline.extend(sys.argv[1:])
myaction, myopts, myfiles = parse_opts(tmpcmdline)
+ if "--digest" in myopts:
+ os.environ["FEATURES"] = os.environ.get("FEATURES","") + " digest"
+ # Reload the whole config from scratch so that the portdbapi internal
+ # config is updated with new FEATURES.
+ settings, trees, mtimedb = load_emerge_config(trees=trees)
+ portdb = trees[settings["ROOT"]]["porttree"].dbapi
+
for myroot in trees:
mysettings = trees[myroot]["vartree"].settings
mysettings.unlock()