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,