1 |
Author: zmedico |
2 |
Date: 2008-06-26 19:34:02 +0000 (Thu, 26 Jun 2008) |
3 |
New Revision: 10805 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/output.py |
7 |
Log: |
8 |
Fix the PermissionDenied message for color.map. |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/portage/output.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/portage/output.py 2008-06-26 19:28:29 UTC (rev 10804) |
14 |
+++ main/trunk/pym/portage/output.py 2008-06-26 19:34:02 UTC (rev 10805) |
15 |
@@ -231,8 +231,11 @@ |
16 |
parse_color_map(onerror=lambda e: writemsg("%s\n" % str(e), noiselevel=-1)) |
17 |
except FileNotFound: |
18 |
pass |
19 |
+except PermissionDenied, e: |
20 |
+ writemsg("Permission denied: '%s'\n" % str(e), noiselevel=-1) |
21 |
+ del e |
22 |
except PortageException, e: |
23 |
- writemsg("%s\n" % str(e)) |
24 |
+ writemsg("%s\n" % str(e), noiselevel=-1) |
25 |
del e |
26 |
|
27 |
def nc_len(mystr): |
28 |
|
29 |
-- |
30 |
gentoo-commits@l.g.o mailing list |