diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-15 05:09:42 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-15 05:09:42 +0000 |
commit | 2342c61cd4af94e4f1db325f57c1d2af882229f1 (patch) | |
tree | fc72991ec10121887c8547c96fac110158d4fcc3 /bin | |
parent | 7bcdb48a4fbaada038ee4b2d6d200f610575bf53 (diff) | |
download | portage-2342c61cd4af94e4f1db325f57c1d2af882229f1.tar.gz portage-2342c61cd4af94e4f1db325f57c1d2af882229f1.tar.bz2 portage-2342c61cd4af94e4f1db325f57c1d2af882229f1.zip |
Bug #236714 - Handle PortagePackageException raised from Manifest.create().
(trunk r11926)
svn path=/main/branches/2.1.6/; revision=11927
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ebuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ebuild b/bin/ebuild index b4ec87014..a38d189a9 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -202,7 +202,8 @@ def stale_env_warning(): for x in msg: portage.writemsg(">>> %s\n" % x) -from portage.exception import PermissionDenied, UnsupportedAPIException +from portage.exception import PermissionDenied, \ + PortagePackageException, UnsupportedAPIException checked_for_stale_env = False for arg in pargs: @@ -230,6 +231,9 @@ for arg in pargs: for x in msg: portage.writemsg("!!! %s\n" % x, noiselevel=-1) a = 1 + except PortagePackageException, e: + portage.writemsg("!!! %s\n" % (e,), noiselevel=-1) + a = 1 except PermissionDenied, e: portage.writemsg("!!! Permission Denied: %s\n" % (e,), noiselevel=-1) a = 1 |