diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-06-26 19:34:02 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-06-26 19:34:02 +0000 |
commit | 54f276e473ce728f7fe6553807774af18fe0d9cf (patch) | |
tree | 48508d7a1a124f5ae5f835ad12b0cf2b91cb6a3b /pym/portage | |
parent | 4bca0b8c3a43d8afbf3ba52f10abac412b97c511 (diff) | |
download | portage-54f276e473ce728f7fe6553807774af18fe0d9cf.tar.gz portage-54f276e473ce728f7fe6553807774af18fe0d9cf.tar.bz2 portage-54f276e473ce728f7fe6553807774af18fe0d9cf.zip |
Fix the PermissionDenied message for color.map.
svn path=/main/trunk/; revision=10805
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/output.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py index a7a500cd4..45def2b38 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -231,8 +231,11 @@ try: parse_color_map(onerror=lambda e: writemsg("%s\n" % str(e), noiselevel=-1)) except FileNotFound: pass +except PermissionDenied, e: + writemsg("Permission denied: '%s'\n" % str(e), noiselevel=-1) + del e except PortageException, e: - writemsg("%s\n" % str(e)) + writemsg("%s\n" % str(e), noiselevel=-1) del e def nc_len(mystr): |