From 9b3549dbfccad30a09c4564587a42f1027b4c676 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 1 Sep 2012 19:24:46 -0700 Subject: apply_user_patches: die if EBUILD_PHASE is wrong --- bin/phase-helpers.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') 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 -- cgit v1.2.3-1-g7c22