summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-09-27 22:47:30 +0000
committerZac Medico <zmedico@gentoo.org>2007-09-27 22:47:30 +0000
commit47ba1ce06b258104c4a86f10b17c1089548c3595 (patch)
tree7990aa9acc4d127ffc25804929ecfdcf81f3743e
parent77a93135b0c763e53ef0d611d3a453a905083ff5 (diff)
downloadportage-47ba1ce06b258104c4a86f10b17c1089548c3595.tar.gz
portage-47ba1ce06b258104c4a86f10b17c1089548c3595.tar.bz2
portage-47ba1ce06b258104c4a86f10b17c1089548c3595.zip
Handle KeyError thrown from aux_get().
svn path=/main/trunk/; revision=7866
-rwxr-xr-xbin/ebuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/ebuild b/bin/ebuild
index 0384a0974..355b349d9 100755
--- a/bin/ebuild
+++ b/bin/ebuild
@@ -161,12 +161,13 @@ def stale_env_warning():
checked_for_stale_env = False
for arg in pargs:
- if not checked_for_stale_env and arg not in ("digest","manifest"):
- # This has to go after manifest generation since otherwise
- # aux_get() might fail due to invalid ebuild digests.
- stale_env_warning()
- checked_for_stale_env = True
try:
+ if not checked_for_stale_env and arg not in ("digest","manifest"):
+ # This has to go after manifest generation since otherwise
+ # aux_get() might fail due to invalid ebuild digests.
+ stale_env_warning()
+ checked_for_stale_env = True
+
if arg == "digest" and force:
discard_digests(ebuild, tmpsettings, portage.portdb)
a = portage.doebuild(ebuild, arg, portage.root, tmpsettings,