From: Zac Medico Date: Mon, 4 Dec 2006 21:49:17 +0000 (-0000) Subject: For bug #157134, make `emerge --digest` automatically reload the config with FEATURES... X-Git-Tag: v2.1.2~399 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=92ea19a9e671d0317699ccabd6ecfff511f6c5a2;p=portage.git For bug #157134, make `emerge --digest` automatically reload the config with FEATURES=digest enabled globally. svn path=/main/trunk/; revision=5173 --- 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()