commit:     bcd3cdecc66f0c991a4069aa00476bd9de5ae978
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 26 20:19:14 2021 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Tue Jan 26 20:19:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcd3cdec

apache-2.eclass: don't perform numeric comparison on EAPI

All EAPIs before EAPI 6 are banned at the top of the eclass, so
just check for EAPI != 6 before calling lua-single_pkg_setup.

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 eclass/apache-2.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/apache-2.eclass b/eclass/apache-2.eclass
index 0177b5987d4..1d32ac4419e 100644
--- a/eclass/apache-2.eclass
+++ b/eclass/apache-2.eclass
@@ -461,7 +461,7 @@ apache-2_pkg_setup() {
                elog
        fi
 
-       if [[ "${EAPI}" -ge 7 ]] && use apache2_modules_lua ; then
+       if [[ ${EAPI} != 6 ]] && use apache2_modules_lua ; then
                lua-single_pkg_setup
        fi
 }

Reply via email to