aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2015-11-17 23:59:40 -0800
committerZac Medico <zmedico@gentoo.org>2015-11-18 08:56:09 -0800
commitb01522a217a90850fd2a42d304708e468c9d065f (patch)
treeeee7447015dd27429ffe731893c2f28ff674ab60
parentsrc_prepare: Do not expect eapply_user in EAPIs not having it (diff)
downloadportage-b01522a217a90850fd2a42d304708e468c9d065f.tar.gz
portage-b01522a217a90850fd2a42d304708e468c9d065f.tar.bz2
portage-b01522a217a90850fd2a42d304708e468c9d065f.zip
eapply_user: die if current phase is not src_prepare
-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 da9aa7c55..f42f805e1 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -1079,6 +1079,8 @@ fi
if ___eapi_has_eapply_user; then
eapply_user() {
+ [[ ${EBUILD_PHASE} == prepare ]] || \
+ die "eapply_user() called during invalid phase: ${EBUILD_PHASE}"
# keep path in __dyn_prepare in sync!
local tagfile=${T}/.portage_user_patches_applied
[[ -f ${tagfile} ]] && return