summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-08-17 06:17:34 +0200
committerUlrich Müller <ulm@gentoo.org>2021-08-19 08:29:45 +0200
commit5cb21dc7788e45972c6d09131d6547bc0ead1cf1 (patch)
treeffece2d9f24d1b365f50e3c89e854a8a41baac9b /eclass
parentreadme.gentoo-r1.eclass: Use fixed location for README.gentoo (diff)
downloadgentoo-5cb21dc7788e45972c6d09131d6547bc0ead1cf1.tar.gz
gentoo-5cb21dc7788e45972c6d09131d6547bc0ead1cf1.tar.bz2
gentoo-5cb21dc7788e45972c6d09131d6547bc0ead1cf1.zip
readme.gentoo-r1.eclass: Standardize EAPI guard
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/readme.gentoo-r1.eclass12
1 files changed, 3 insertions, 9 deletions
diff --git a/eclass/readme.gentoo-r1.eclass b/eclass/readme.gentoo-r1.eclass
index e47e1ac20af6..3ad36fac2588 100644
--- a/eclass/readme.gentoo-r1.eclass
+++ b/eclass/readme.gentoo-r1.eclass
@@ -20,15 +20,9 @@
if [[ -z ${_README_GENTOO_ECLASS} ]]; then
_README_GENTOO_ECLASS=1
-case "${EAPI:-0}" in
- 0|1|2|3|4|5)
- die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
- ;;
- 6|7|8)
- ;;
- *)
- die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
- ;;
+case ${EAPI} in
+ 6|7|8) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
# @ECLASS-VARIABLE: DISABLE_AUTOFORMATTING