From 636fac88ce0bb0b28c06622742186a8f48d7bd3c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Apr 2009 06:44:06 +0000 Subject: [PATCH] Add (x of y ) package counter in the "Installing" message, similar to the counter show in the "Emerging" message. Thanks to Ned Ludd for the suggestion. (trunk r13239) svn path=/main/branches/2.1.6/; revision=13420 --- pym/_emerge/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 0d3a3d378..ebd64f105 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -4020,7 +4020,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) -- 2.26.2