From: Zac Medico Date: Thu, 17 Jul 2008 13:08:11 +0000 (-0000) Subject: Don't show "Merging" and "merged." messages when in background mode. X-Git-Tag: v2.2_rc2~59 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=47d4b32879edfed2645b423e878e1530cb2c2fda;p=portage.git Don't show "Merging" and "merged." messages when in background mode. svn path=/main/trunk/; revision=11105 --- 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)