Handle KeyError thrown from aux_get().
authorZac Medico <zmedico@gentoo.org>
Thu, 27 Sep 2007 22:47:30 +0000 (22:47 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 27 Sep 2007 22:47:30 +0000 (22:47 -0000)
svn path=/main/trunk/; revision=7866

bin/ebuild

index 0384a0974c1c57fe94f907ac0095060df37803df..355b349d96247393d1c35bdaa0094aebf3369161 100755 (executable)
@@ -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,