diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-12-04 21:49:17 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-12-04 21:49:17 +0000 |
commit | 92ea19a9e671d0317699ccabd6ecfff511f6c5a2 (patch) | |
tree | dd72014b31badfba3b9ff291d5b985901ca7bba5 | |
parent | 6eb1ca2326c2021f4106b6a39e784b968746a9a6 (diff) | |
download | portage-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-x | bin/emerge | 7 |
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() |