From: Zac Medico Date: Sun, 2 Sep 2012 02:24:46 +0000 (-0700) Subject: apply_user_patches: die if EBUILD_PHASE is wrong X-Git-Tag: v2.2.0_alpha124~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9b3549dbfccad30a09c4564587a42f1027b4c676;p=portage.git apply_user_patches: die if EBUILD_PHASE is wrong --- 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