Don't show "Merging" and "merged." messages when in background mode.
authorZac Medico <zmedico@gentoo.org>
Thu, 17 Jul 2008 13:08:11 +0000 (13:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 17 Jul 2008 13:08:11 +0000 (13:08 -0000)
svn path=/main/trunk/; revision=11105

pym/_emerge/__init__.py

index 36d21193b4af782e3e835ef52ae6c1ad53275927..094cb40b404b722b34e8bf44d72176595d489c02 100644 (file)
@@ -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)