aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-03-01 16:53:25 -0800
committerZac Medico <zmedico@gentoo.org>2011-03-01 16:53:25 -0800
commitfc48bb45e2c6ca331b1d1df7a57ea82e705b2439 (patch)
tree5c767a2c29b63cddd053fa313f6a1167e28fb2b8 /bin
parentaction_deselect: expand cat against world atoms (diff)
downloadportage-fc48bb45e2c6ca331b1d1df7a57ea82e705b2439.tar.gz
portage-fc48bb45e2c6ca331b1d1df7a57ea82e705b2439.tar.bz2
portage-fc48bb45e2c6ca331b1d1df7a57ea82e705b2439.zip
ebuild(1): fix ebuild modification check
This has been broken since the setcpv call (triggering metadata generation) was added before it in commit 0b39d24bb8270e5c89eaddfd1f5a4181cf9e31d3.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild25
1 files changed, 13 insertions, 12 deletions
diff --git a/bin/ebuild b/bin/ebuild
index a8296e8ab..d6cdc666c 100755
--- a/bin/ebuild
+++ b/bin/ebuild
@@ -217,6 +217,19 @@ def discard_digests(myebuild, mysettings, mydbapi):
portage._doebuild_manifest_exempt_depend -= 1
portage.settings.validate() # generate warning messages if necessary
+
+build_dir_phases = set(["setup", "unpack", "prepare", "configure", "compile",
+ "test", "install", "package", "rpm", "merge", "qmerge"])
+
+# If the current metadata is invalid then force the ebuild to be
+# sourced again even if $T/environment already exists.
+ebuild_changed = False
+if mytree == "porttree" and build_dir_phases.intersection(pargs):
+ metadata, st, emtime = \
+ portage.portdb._pull_valid_cache(cpv, ebuild, ebuild_portdir)
+ if metadata is None:
+ ebuild_changed = True
+
tmpsettings = portage.config(clone=portage.settings)
tmpsettings["PORTAGE_VERBOSE"] = "1"
tmpsettings.backup_changes("PORTAGE_VERBOSE")
@@ -251,18 +264,6 @@ except KeyError:
# aux_get failure, message should have been shown on stderr.
sys.exit(1)
-build_dir_phases = set(["setup", "unpack", "prepare", "configure", "compile",
- "test", "install", "package", "rpm", "merge", "qmerge"])
-
-# If the current metadata is invalid then force the ebuild to be
-# sourced again even if $T/environment already exists.
-ebuild_changed = False
-if mytree == "porttree" and build_dir_phases.intersection(pargs):
- metadata, st, emtime = \
- portage.portdb._pull_valid_cache(cpv, ebuild, ebuild_portdir)
- if metadata is None:
- ebuild_changed = True
-
def stale_env_warning():
if "clean" not in pargs and \
"noauto" not in tmpsettings.features and \