From 54f276e473ce728f7fe6553807774af18fe0d9cf Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 26 Jun 2008 19:34:02 +0000 Subject: [PATCH] Fix the PermissionDenied message for color.map. svn path=/main/trunk/; revision=10805 --- pym/portage/output.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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): -- 2.26.2