diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-04 07:53:37 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-04 07:53:37 +0000 |
commit | 1ad045c9b59bc8f0bd51fb74f6b9d9b650f7b6f3 (patch) | |
tree | c0768f85c9bd7a4d61899f7b7bc7fe54239ee7ce | |
parent | a6de25c7e939868c7e1896af32e65e39222df85c (diff) | |
download | portage-1ad045c9b59bc8f0bd51fb74f6b9d9b650f7b6f3.tar.gz portage-1ad045c9b59bc8f0bd51fb74f6b9d9b650f7b6f3.tar.bz2 portage-1ad045c9b59bc8f0bd51fb74f6b9d9b650f7b6f3.zip |
Handle UnsupportedAPIException when running the ebuild(1)
command.
svn path=/main/trunk/; revision=7918
-rwxr-xr-x | bin/ebuild | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/ebuild b/bin/ebuild index 355b349d9..d5e09dd97 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -158,6 +158,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: @@ -178,6 +179,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 |