1 |
Author: zmedico |
2 |
Date: 2008-09-26 03:13:33 +0000 (Fri, 26 Sep 2008) |
3 |
New Revision: 11556 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/_emerge/__init__.py |
7 |
Log: |
8 |
Add back code removed in r11553 and fix logic to avoid IndexError. |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/_emerge/__init__.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/_emerge/__init__.py 2008-09-26 02:16:14 UTC (rev 11555) |
14 |
+++ main/trunk/pym/_emerge/__init__.py 2008-09-26 03:13:33 UTC (rev 11556) |
15 |
@@ -10893,7 +10893,11 @@ |
16 |
owners = vardbapi._owners.getFileOwnerMap(consumers[:MAX_DISPLAY+2]) |
17 |
for c in consumers[:MAX_DISPLAY]: |
18 |
print colorize("WARN", " * ") + " used by %s (%s)" % (c, ", ".join([x.mycpv for x in owners[c]])) |
19 |
- if len(consumers) > MAX_DISPLAY: |
20 |
+ if len(consumers) == MAX_DISPLAY + 1: |
21 |
+ print colorize("WARN", " * ") + " used by %s (%s)" % \ |
22 |
+ (consumers[MAX_DISPLAY], ", ".join( |
23 |
+ x.mycpv for x in owners[consumers[MAX_DISPLAY]])) |
24 |
+ elif len(consumers) > MAX_DISPLAY: |
25 |
print colorize("WARN", " * ") + " used by %d other files" % (len(consumers) - MAX_DISPLAY) |
26 |
print "Use " + colorize("GOOD", "emerge @preserved-rebuild") + " to rebuild packages using these libraries" |