Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r13420 - main/branches/2.1.6/pym/_emerge
Date: Thu, 30 Apr 2009 06:44:08
Message-Id: E1LzQ07-0003k8-6x@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-04-30 06:44:06 +0000 (Thu, 30 Apr 2009)
3 New Revision: 13420
4
5 Modified:
6 main/branches/2.1.6/pym/_emerge/__init__.py
7 Log:
8 Add (x of y ) package counter in the "Installing" message, similar to the
9 counter show in the "Emerging" message. Thanks to Ned Ludd <solar@g.o> for
10 the suggestion. (trunk r13239)
11
12 Modified: main/branches/2.1.6/pym/_emerge/__init__.py
13 ===================================================================
14 --- main/branches/2.1.6/pym/_emerge/__init__.py 2009-04-30 06:30:32 UTC (rev 13419)
15 +++ main/branches/2.1.6/pym/_emerge/__init__.py 2009-04-30 06:44:06 UTC (rev 13420)
16 @@ -4020,7 +4020,11 @@
17 action_desc = "Installing"
18 preposition = "to"
19
20 - msg = "%s %s" % (action_desc, colorize("GOOD", pkg.cpv))
21 + msg = "%s (%s of %s) %s" % \
22 + (action_desc,
23 + colorize("MERGE_LIST_PROGRESS", str(pkg_count.curval)),
24 + colorize("MERGE_LIST_PROGRESS", str(pkg_count.maxval)),
25 + colorize("GOOD", pkg.cpv))
26
27 if pkg.root != "/":
28 msg += " %s %s" % (preposition, pkg.root)