Only call eapply with a non-empty PATCHES array, as specified by PMS. X-Gentoo-bug: 579626 X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=579626 --- bin/phase-helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index 1a9ee7b..5af2784 100644 --- a/bin/phase-helpers.sh +++ b/bin/phase-helpers.sh @@ -806,7 +806,7 @@ __eapi4_src_install() { __eapi6_src_prepare() { if [[ $(declare -p PATCHES 2>/dev/null) == "declare -a"* ]]; then - eapply "${PATCHES[@]}" + [[ -n ${PATCHES[@]} ]] && eapply "${PATCHES[@]}" elif [[ -n ${PATCHES} ]]; then eapply ${PATCHES} fi -- 2.7.4