commit:     70f9a291edb7321f350f87c5eb1901fb515330a2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 27 21:12:43 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 11 20:59:50 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70f9a291

autotools.eclass: convert phase test to EBUILD_PHASE_FUNC

Introduced in EAPI 5.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/autotools.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 0e8f3cdc98a..e24a07e7945 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -529,8 +529,8 @@ autotools_run_tool() {
                shift
        done
 
-       if [[ ${EBUILD_PHASE} != "unpack" && ${EBUILD_PHASE} != "prepare" ]] ; 
then
-               eqawarn "Running '${1}' in ${EBUILD_PHASE} phase"
+       if [[ ${EBUILD_PHASE_FUNC} != "src_unpack" && ${EBUILD_PHASE_FUNC} != 
"src_prepare" ]] ; then
+               eqawarn "Running '${1}' in ${EBUILD_PHASE_FUNC} phase"
        fi
 
        if ${missing_ok} && ! type -P ${1} >/dev/null ; then

Reply via email to