summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-18 00:52:45 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-18 00:52:45 +0000
commit43d0545119b66e6196508d40bae884df3ffa2a4f (patch)
tree36dd99fd1a3423d3c13084d3c73ce05fe18f1c82
parenta50232026ffc53a3b162ebf39849ede37b6be5d8 (diff)
downloadportage-43d0545119b66e6196508d40bae884df3ffa2a4f.tar.gz
portage-43d0545119b66e6196508d40bae884df3ffa2a4f.tar.bz2
portage-43d0545119b66e6196508d40bae884df3ffa2a4f.zip
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
-rw-r--r--pym/_emerge/__init__.py5
1 files 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,