From 47d4b32879edfed2645b423e878e1530cb2c2fda Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 17 Jul 2008 13:08:11 +0000 Subject: [PATCH] Don't show "Merging" and "merged." messages when in background mode. svn path=/main/trunk/; revision=11105 --- pym/_emerge/__init__.py | 6 ++++-- 1 file 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) -- 2.26.2