summaryrefslogtreecommitdiffstats
path: root/pym/portage/__init__.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-12-04 23:57:32 +0000
committerZac Medico <zmedico@gentoo.org>2008-12-04 23:57:32 +0000
commit8954c37a146e73f96550ca58d2e467b91dec2dd7 (patch)
tree2d32bfe88da55427eb426e8559c67f39ed3c4124 /pym/portage/__init__.py
parent2073b209f8d6a286d16dbf78248d36e5690631a2 (diff)
downloadportage-8954c37a146e73f96550ca58d2e467b91dec2dd7.tar.gz
portage-8954c37a146e73f96550ca58d2e467b91dec2dd7.tar.bz2
portage-8954c37a146e73f96550ca58d2e467b91dec2dd7.zip
Make fixpackages less noisy by only generting '*' characters for packages
that are modified by updates. (trunk r12155) svn path=/main/branches/2.1.6/; revision=12158
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 9beb068c3..e99fe2ce4 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -7363,11 +7363,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