summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2021-07-06 16:45:06 -0500
committerWilliam Hubbs <williamh@gentoo.org>2021-07-06 16:45:06 -0500
commit152cffa462adca8b471cd848cbfcb05b9cb24de1 (patch)
treeae717e9813f9762daf125164bb48b6051563e58a /eclass/lua-utils.eclass
parentlua-single.eclass: clean up the eapi test (diff)
downloadgentoo-152cffa462adca8b471cd848cbfcb05b9cb24de1.tar.gz
gentoo-152cffa462adca8b471cd848cbfcb05b9cb24de1.tar.bz2
gentoo-152cffa462adca8b471cd848cbfcb05b9cb24de1.zip
lua-utils.eclass: clean up the eapi test
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'eclass/lua-utils.eclass')
-rw-r--r--eclass/lua-utils.eclass9
1 files changed, 2 insertions, 7 deletions
diff --git a/eclass/lua-utils.eclass b/eclass/lua-utils.eclass
index 59959eaf9c0..278bbca58a3 100644
--- a/eclass/lua-utils.eclass
+++ b/eclass/lua-utils.eclass
@@ -17,15 +17,10 @@
# This eclass neither sets any metadata variables nor exports any phase
# functions. It can be inherited safely.
-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_UTILS_R0} ]]; then