summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-17 13:08:11 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-17 13:08:11 +0000
commit47d4b32879edfed2645b423e878e1530cb2c2fda (patch)
treed6686f5800a203c1b332c46df893bfd21d1739b1
parentfd5d1a2293079695cb7ce357b780e631a2253547 (diff)
downloadportage-47d4b32879edfed2645b423e878e1530cb2c2fda.tar.gz
portage-47d4b32879edfed2645b423e878e1530cb2c2fda.tar.bz2
portage-47d4b32879edfed2645b423e878e1530cb2c2fda.zip
Don't show "Merging" and "merged." messages when in background mode.
svn path=/main/trunk/; revision=11105
-rw-r--r--pym/_emerge/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 36d21193b..094cb40b4 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -8691,7 +8691,8 @@ class Scheduler(PollScheduler):
if phase == "preinst":
msg = ">>> Merging %s to %s\n" % (pkg.cpv, pkg.root)
- portage.writemsg_stdout(msg)
+ if not background:
+ portage.writemsg_stdout(msg)
if log_path is not None:
self._append_to_log_path(log_path, msg)
@@ -8704,7 +8705,8 @@ class Scheduler(PollScheduler):
if phase == "postinst" and \
ebuild_phase.returncode == os.EX_OK:
msg = ">>> %s %s\n" % (pkg.cpv, "merged.")
- portage.writemsg_stdout(msg)
+ if not background:
+ portage.writemsg_stdout(msg)
if log_path is not None:
self._append_to_log_path(log_path, msg)