diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ebuild | 5 |
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 |