summaryrefslogtreecommitdiffstats
path: root/pym/portage/__init__.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-12-04 23:56:13 +0000
committerZac Medico <zmedico@gentoo.org>2008-12-04 23:56:13 +0000
commit032ae6e652032a2adf8cc8abcb594a6242a93da9 (patch)
tree37b26a3ef27c4654694526709878840e9ae30f87 /pym/portage/__init__.py
parent700b4960f8751a454f1d9b0c8525e39447c02099 (diff)
downloadportage-032ae6e652032a2adf8cc8abcb594a6242a93da9.tar.gz
portage-032ae6e652032a2adf8cc8abcb594a6242a93da9.tar.bz2
portage-032ae6e652032a2adf8cc8abcb594a6242a93da9.zip
Make fixpackages less noisy by only generting '*' characters for packages
that are modified by updates. svn path=/main/trunk/; revision=12157
Diffstat (limited to 'pym/portage/__init__.py')
-rw-r--r--pym/portage/__init__.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 6ebfae4f1..c70b77eef 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -7376,11 +7376,12 @@ def _global_updates(trees, prev_mtimes):
# We gotta do the brute force updates for these now.
if mysettings["PORTAGE_CALLER"] == "fixpackages" or \
"fixpackages" in mysettings.features:
- def onProgress(maxval, curval):
- writemsg_stdout("*")
- vardb.update_ents(myupd, onProgress=onProgress)
+ def onUpdate(maxval, curval):
+ if curval > 0:
+ writemsg_stdout("*")
+ vardb.update_ents(myupd, onUpdate=onUpdate)
if bindb:
- bindb.update_ents(myupd, onProgress=onProgress)
+ bindb.update_ents(myupd, onUpdate=onUpdate)
else:
do_upgrade_packagesmessage = 1