From: Zac Medico Date: Fri, 18 Jul 2008 00:52:45 +0000 (-0000) Subject: In dblink._dblink_display_merge(), when in background mode and no log is X-Git-Tag: v2.2_rc2~48 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=43d0545119b66e6196508d40bae884df3ffa2a4f;p=portage.git In dblink._dblink_display_merge(), when in background mode and no log is available, suppress output when level < logging.WARNING. This hides ">>> Regenerating /etc/ld.so.cache..." messages that appear after postrm when PORT_LOGDIR is unset (the log file if it exists is removed after postrm so there's no place to log the message). svn path=/main/trunk/; revision=11120 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index cb760e172..d2f8dc2e1 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -8753,8 +8753,9 @@ class Scheduler(PollScheduler): background = self._max_jobs > 1 if log_path is None: - portage.util.writemsg_level(msg, - level=level, noiselevel=noiselevel) + if not (background and level < logging.WARN): + portage.util.writemsg_level(msg, + level=level, noiselevel=noiselevel) else: if not background: portage.util.writemsg_level(msg,