commit:     76879309348b02d3b07558a218bd08cdaa069480
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  6 21:45:05 2021 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Jul  6 21:45:05 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76879309

lua-single.eclass: clean up the eapi test

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 eclass/lua-single.eclass | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/eclass/lua-single.eclass b/eclass/lua-single.eclass
index 7abe1eb6674..ab4fdb3c75a 100644
--- a/eclass/lua-single.eclass
+++ b/eclass/lua-single.eclass
@@ -62,15 +62,10 @@
 # }
 # @CODE
 
-case ${EAPI:-0} in
-       0|1|2|3|4|5|6)
-               die "Unsupported EAPI=${EAPI} (too old) for ${ECLASS}"
-               ;;
+case ${EAPI} in
        7|8)
                ;;
-       *)
-               die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
-               ;;
+       *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
 if [[ ! ${_LUA_SINGLE_R0} ]]; then

Reply via email to