Mailing List Archive

[PATCH 2/3] lua-utils.eclass: clean up the eapi test
Signed-off-by: William Hubbs <williamh@gentoo.org>
---
eclass/lua-utils.eclass | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/eclass/lua-utils.eclass b/eclass/lua-utils.eclass
index 59959eaf9c0..80758c15ded 100644
--- a/eclass/lua-utils.eclass
+++ b/eclass/lua-utils.eclass
@@ -18,13 +18,10 @@
# 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}"
- ;;
7|8)
;;
*)
- die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
+ die "Unsupported EAPI=${EAPI} for ${ECLASS}"
;;
esac

--
2.31.1
[PATCH 2/3] lua-utils.eclass: clean up the eapi test [ In reply to ]
Signed-off-by: William Hubbs <williamh@gentoo.org>
---
eclass/lua-utils.eclass | 9 ++-------
1 file 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
--
2.31.1