1 |
commit: 152cffa462adca8b471cd848cbfcb05b9cb24de1 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 6 21:45:06 2021 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 6 21:45:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=152cffa4 |
7 |
|
8 |
lua-utils.eclass: clean up the eapi test |
9 |
|
10 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
11 |
|
12 |
eclass/lua-utils.eclass | 9 ++------- |
13 |
1 file changed, 2 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/eclass/lua-utils.eclass b/eclass/lua-utils.eclass |
16 |
index 59959eaf9c0..278bbca58a3 100644 |
17 |
--- a/eclass/lua-utils.eclass |
18 |
+++ b/eclass/lua-utils.eclass |
19 |
@@ -17,15 +17,10 @@ |
20 |
# This eclass neither sets any metadata variables nor exports any phase |
21 |
# functions. It can be inherited safely. |
22 |
|
23 |
-case ${EAPI:-0} in |
24 |
- 0|1|2|3|4|5|6) |
25 |
- die "Unsupported EAPI=${EAPI} (too old) for ${ECLASS}" |
26 |
- ;; |
27 |
+case ${EAPI} in |
28 |
7|8) |
29 |
;; |
30 |
- *) |
31 |
- die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" |
32 |
- ;; |
33 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
34 |
esac |
35 |
|
36 |
if [[ ! ${_LUA_UTILS_R0} ]]; then |