Gentoo Archives: gentoo-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: Pacho Ramos <pacho@g.o>, "Ulrich Müller" <ulm@g.o>
Subject: [gentoo-dev] [PATCH v2 2/2] readme.gentoo-r1.eclass: Standardize EAPI guard
Date: Tue, 17 Aug 2021 04:54:33
Message-Id: 20210817045127.13758-2-ulm@gentoo.org
In Reply to: [gentoo-dev] [PATCH] readme.gentoo-r1.eclass: Use fixed location for README.gentoo by "Ulrich Müller"
1 Signed-off-by: Ulrich Müller <ulm@g.o>
2 ---
3 eclass/readme.gentoo-r1.eclass | 12 +++---------
4 1 file changed, 3 insertions(+), 9 deletions(-)
5
6 diff --git a/eclass/readme.gentoo-r1.eclass b/eclass/readme.gentoo-r1.eclass
7 index e47e1ac20af6..3ad36fac2588 100644
8 --- a/eclass/readme.gentoo-r1.eclass
9 +++ b/eclass/readme.gentoo-r1.eclass
10 @@ -20,15 +20,9 @@
11 if [[ -z ${_README_GENTOO_ECLASS} ]]; then
12 _README_GENTOO_ECLASS=1
13
14 -case "${EAPI:-0}" in
15 - 0|1|2|3|4|5)
16 - die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
17 - ;;
18 - 6|7|8)
19 - ;;
20 - *)
21 - die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
22 - ;;
23 +case ${EAPI} in
24 + 6|7|8) ;;
25 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
26 esac
27
28 # @ECLASS-VARIABLE: DISABLE_AUTOFORMATTING
29 --
30 2.32.0

Replies