summaryrefslogtreecommitdiffstats
path: root/bin/phase-helpers.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-09-01 19:24:46 -0700
committerZac Medico <zmedico@gentoo.org>2012-09-01 19:24:46 -0700
commit9b3549dbfccad30a09c4564587a42f1027b4c676 (patch)
tree8400c3445d0a9aeaf7685adc874c8e44d3e8786b /bin/phase-helpers.sh
parent98fbf73ba03a048fca37d409092a14472483b6c0 (diff)
downloadportage-9b3549dbfccad30a09c4564587a42f1027b4c676.tar.gz
portage-9b3549dbfccad30a09c4564587a42f1027b4c676.tar.bz2
portage-9b3549dbfccad30a09c4564587a42f1027b4c676.zip
apply_user_patches: die if EBUILD_PHASE is wrong
Diffstat (limited to 'bin/phase-helpers.sh')
-rw-r--r--bin/phase-helpers.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index f23abdf75..46f713211 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -639,6 +639,8 @@ apply_user_patches() {
}
_eapi5_apply_user_patches() {
+ [[ ${EBUILD_PHASE} == prepare ]] || \
+ die "apply_user_patches may only be called during src_prepare"
# This is a no-op that is just enough to fullfill the spec.
[[ -f ${PORTAGE_BUILDDIR}/.apply_user_patches ]] && return 1
> "${PORTAGE_BUILDDIR}/.apply_user_patches" || die