From b146b90d824ae1b080767fd0f146c474773db7dd Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 15 Nov 2008 05:09:07 +0000 Subject: Bug #236714 - Handle PortagePackageException raised from Manifest.create(). svn path=/main/trunk/; revision=11926 --- bin/ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/ebuild') 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 -- cgit v1.2.3-1-g7c22