From 80d7def7ab109f448d5a8d0139882f673ccd5b60 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Sun, 2 Mar 2008 12:53:57 +0000 Subject: [PATCH] set domute instead of checking etpUi['mute'] twice, this avoids multithreading issues git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1359 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/portageTools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/portageTools.py b/libraries/portageTools.py index fb59af79b..bbd131315 100644 --- a/libraries/portageTools.py +++ b/libraries/portageTools.py @@ -797,7 +797,9 @@ def portage_doebuild(myebuild, mydo, tree, cpv, portage_tmpdir = None, licenses ### SETUP ENVIRONMENT # if mute, supress portage output + domute = False if etpUi['mute']: + domute = True oldsysstdout = sys.stdout sys.stdout = f @@ -866,7 +868,7 @@ def portage_doebuild(myebuild, mydo, tree, cpv, portage_tmpdir = None, licenses rc = portage.doebuild(myebuild = str(myebuild), mydo = str(mydo), myroot = mypath, tree = tree, mysettings = mysettings, mydbapi = mydbapi, vartree = vartree, use_cache = 0) # if mute, restore old stdout/stderr - if etpUi['mute']: + if domute: sys.stdout = oldsysstdout sys.stderr = oldsystderr