From 92ea19a9e671d0317699ccabd6ecfff511f6c5a2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 4 Dec 2006 21:49:17 +0000 Subject: [PATCH] For bug #157134, make `emerge --digest` automatically reload the config with FEATURES=digest enabled globally. svn path=/main/trunk/; revision=5173 --- bin/emerge | 7 +++++++ 1 file changed, 7 insertions(+) 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() -- 2.26.2