summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-15 04:51:25 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-15 04:51:25 +0000
commit4991fada6b05d47b7880b1de30e81ab655cae273 (patch)
tree43ca3502b55129c24727a73e4a6f549dbd122897 /bin
parent22e9978f6b07d0b4183b3b330c13f2a8ec8db11b (diff)
downloadportage-4991fada6b05d47b7880b1de30e81ab655cae273.tar.gz
portage-4991fada6b05d47b7880b1de30e81ab655cae273.tar.bz2
portage-4991fada6b05d47b7880b1de30e81ab655cae273.zip
Bug #236683 - Fix PermissionDenied handling to report the exception type.
(trunk r11922) svn path=/main/branches/2.1.6/; revision=11923
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/ebuild b/bin/ebuild
index 6760787c4..b4ec87014 100755
--- a/bin/ebuild
+++ b/bin/ebuild
@@ -202,7 +202,7 @@ def stale_env_warning():
for x in msg:
portage.writemsg(">>> %s\n" % x)
-from portage.exception import UnsupportedAPIException
+from portage.exception import PermissionDenied, UnsupportedAPIException
checked_for_stale_env = False
for arg in pargs:
@@ -230,6 +230,9 @@ for arg in pargs:
for x in msg:
portage.writemsg("!!! %s\n" % x, noiselevel=-1)
a = 1
+ except PermissionDenied, e:
+ portage.writemsg("!!! Permission Denied: %s\n" % (e,), noiselevel=-1)
+ a = 1
if a == None:
print "Could not run the required binary?"
a = 127