From 43d0545119b66e6196508d40bae884df3ffa2a4f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 18 Jul 2008 00:52:45 +0000 Subject: [PATCH] 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 --- pym/_emerge/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, -- 2.26.2