1 |
Author: zmedico |
2 |
Date: 2008-09-26 01:45:17 +0000 (Fri, 26 Sep 2008) |
3 |
New Revision: 11553 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/_emerge/__init__.py |
7 |
Log: |
8 |
Fix a potential IndexError inside display_preserved_libs(). |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/_emerge/__init__.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/_emerge/__init__.py 2008-09-26 01:15:44 UTC (rev 11552) |
14 |
+++ main/trunk/pym/_emerge/__init__.py 2008-09-26 01:45:17 UTC (rev 11553) |
15 |
@@ -10893,10 +10893,8 @@ |
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 + 1: |
20 |
+ if len(consumers) > MAX_DISPLAY: |
21 |
print colorize("WARN", " * ") + " used by %d other files" % (len(consumers) - MAX_DISPLAY) |
22 |
- else: |
23 |
- print colorize("WARN", " * ") + " used by %s (%s)" % (consumers[MAX_DISPLAY], ", ".join([x.mycpv for x in owners[consumers[MAX_DISPLAY]]])) |
24 |
print "Use " + colorize("GOOD", "emerge @preserved-rebuild") + " to rebuild packages using these libraries" |