diff options
-rw-r--r-- | bin/phase-helpers.sh | 2 |
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 |