summaryrefslogtreecommitdiffstats
path: root/bin/ebuild
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-05 03:24:17 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-05 03:24:17 +0000
commit7c3688f2701bb68c33d951123cdf6b727c208a8e (patch)
tree04ad58e8dbc51db7c34e51aa5e4b1ff490058dad /bin/ebuild
parentc31f3e5bcf72c80b3ba529201015669c942c4137 (diff)
downloadportage-7c3688f2701bb68c33d951123cdf6b727c208a8e.tar.gz
portage-7c3688f2701bb68c33d951123cdf6b727c208a8e.tar.bz2
portage-7c3688f2701bb68c33d951123cdf6b727c208a8e.zip
Handle UnsupportedAPIException when running the ebuild(1)
command. (trunk r7918) svn path=/main/branches/2.1.2/; revision=7940
Diffstat (limited to 'bin/ebuild')
-rwxr-xr-xbin/ebuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/ebuild b/bin/ebuild
index bf90ce189..a44fcad39 100755
--- a/bin/ebuild
+++ b/bin/ebuild
@@ -159,6 +159,7 @@ def stale_env_warning():
for x in msg:
portage.writemsg(">>> %s\n" % x)
+from portage_exception import UnsupportedAPIException
checked_for_stale_env = False
for arg in pargs:
@@ -179,6 +180,13 @@ for arg in pargs:
except KeyError:
# aux_get error
a = 1
+ except UnsupportedAPIException, e:
+ from textwrap import wrap
+ msg = wrap(str(e), 70)
+ del e
+ for x in msg:
+ portage.writemsg("!!! %s\n" % x, noiselevel=-1)
+ a = 1
if a == None:
print "Could not run the required binary?"
a = 127