Modify portage's settings object rather than the original env.
authorJason Stubbs <jstubbs@gentoo.org>
Mon, 26 Dec 2005 23:31:58 +0000 (23:31 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Mon, 26 Dec 2005 23:31:58 +0000 (23:31 -0000)
svn path=/main/trunk/; revision=2485

bin/emerge

index 8a31affd7d7db6b05a523470723c95124929386b..99fb2e894855f07e968c2c181aa833291198a468 100755 (executable)
@@ -326,7 +326,10 @@ if ("--tree" in myopts) and ("--columns" in myopts):
 
 if ("--quiet" in myopts):
        update_spinner = update_quiet_spinner
-       os.environ["PORTAGE_QUIET"] = "1"
+       portage.settings.unlock()
+       portage.settings["PORTAGE_QUIET"]="1"
+       portage.settings.backup_changes("PORTAGE_QUIET")
+       portage.settings.lock()
 
 # Always create packages if FEATURES=buildpkg
 # Imply --buildpkg if --buildpkgonly