diff options
author | 2008-11-15 04:50:11 +0000 | |
---|---|---|
committer | 2008-11-15 04:50:11 +0000 | |
commit | 076a38005c19efaad184048a21d084428ebcd63f (patch) | |
tree | cf7ce8228d87eb4622f356c3d9261a898578ed25 /bin | |
parent | Bug #243022 - Inside dblink.mergeme(), when merging a directory and a symlink (diff) | |
download | portage-idfetch-076a38005c19efaad184048a21d084428ebcd63f.tar.gz portage-idfetch-076a38005c19efaad184048a21d084428ebcd63f.tar.bz2 portage-idfetch-076a38005c19efaad184048a21d084428ebcd63f.zip |
Bug #236683 - Fix PermissionDenied handling to report the exception type.
svn path=/main/trunk/; revision=11922
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ebuild | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |