summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/__init__.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-28 01:17:57 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-28 01:17:57 +0000
commit18f3b6ca7a5faa6a1ffe90f3c6f58b0dc0a6595d (patch)
treede16436f54debb661aafc1f4d741b51b4c9fdb8a /pym/_emerge/__init__.py
parentff7a169d9847eebe2cee717c662880e83c7559b5 (diff)
downloadportage-18f3b6ca7a5faa6a1ffe90f3c6f58b0dc0a6595d.tar.gz
portage-18f3b6ca7a5faa6a1ffe90f3c6f58b0dc0a6595d.tar.bz2
portage-18f3b6ca7a5faa6a1ffe90f3c6f58b0dc0a6595d.zip
Add (x of y ) package counter in the "Installing" message, similar to the
counter show in the "Emerging" message. Thanks to Ned Ludd <solar@g.o> for the suggestion. svn path=/main/trunk/; revision=13239
Diffstat (limited to 'pym/_emerge/__init__.py')
-rw-r--r--pym/_emerge/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 04695cf8a..42f608a41 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -4039,7 +4039,11 @@ class PackageMerge(AsynchronousTask):
action_desc = "Installing"
preposition = "to"
- msg = "%s %s" % (action_desc, colorize("GOOD", pkg.cpv))
+ msg = "%s (%s of %s) %s" % \
+ (action_desc,
+ colorize("MERGE_LIST_PROGRESS", str(pkg_count.curval)),
+ colorize("MERGE_LIST_PROGRESS", str(pkg_count.maxval)),
+ colorize("GOOD", pkg.cpv))
if pkg.root != "/":
msg += " %s %s" % (preposition, pkg.root)