aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-10 07:51:22 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-10 07:51:22 -0700
commit465e8facba7deffea50d76e8be03badc14927fb3 (patch)
tree1bebfff4cb0c29839efce1837dbb03274aec8a38 /pym/portage/_global_updates.py
parentglobal updates: Honor -q and don't repeat the legend (diff)
downloadportage-465e8facba7deffea50d76e8be03badc14927fb3.tar.gz
portage-465e8facba7deffea50d76e8be03badc14927fb3.tar.bz2
portage-465e8facba7deffea50d76e8be03badc14927fb3.zip
Bug #336595 - Make dbapi.update_ents() calls quiet when appropriate in
_global_updates().
Diffstat (limited to 'pym/portage/_global_updates.py')
-rw-r--r--pym/portage/_global_updates.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/_global_updates.py b/pym/portage/_global_updates.py
index 8390d68cf..868d1ee80 100644
--- a/pym/portage/_global_updates.py
+++ b/pym/portage/_global_updates.py
@@ -222,11 +222,15 @@ def _global_updates(trees, prev_mtimes, quiet=False):
def onUpdate(maxval, curval):
if curval > 0:
writemsg_stdout("#")
+ if quiet:
+ onUpdate = None
vardb.update_ents(repo_map, onUpdate=onUpdate)
if bindb:
def onUpdate(maxval, curval):
if curval > 0:
writemsg_stdout("*")
+ if quiet:
+ onUpdate = None
bindb.update_ents(repo_map, onUpdate=onUpdate)
else:
do_upgrade_packagesmessage = 1