Gentoo Archives: gentoo-dev

From: Michael Orlitzky <mjo@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 1/6] eapi7-ver.eclass: Explicitly indicate that EAPI 7+ includes it
Date: Tue, 06 Mar 2018 19:29:12
Message-Id: 816b6104-b131-504d-855d-bcc6fa05a6ee@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/6] eapi7-ver.eclass: Explicitly indicate that EAPI 7+ includes it by "Michał Górny"
1 On 03/06/2018 12:25 PM, Michał Górny wrote:
2 > ---
3 > eclass/eapi7-ver.eclass | 2 +-
4 > 1 file changed, 1 insertion(+), 1 deletion(-)
5 >
6 > diff --git a/eclass/eapi7-ver.eclass b/eclass/eapi7-ver.eclass
7 > index 7eb070c68171..6117124a90a5 100644
8 > --- a/eclass/eapi7-ver.eclass
9 > +++ b/eclass/eapi7-ver.eclass
10 > @@ -63,7 +63,7 @@ case ${EAPI:-0} in
11 > 6)
12 > ;;
13 > *)
14 > - die "${ECLASS}: EAPI=${EAPI} unknown";;
15 > + die "${ECLASS}: EAPI=${EAPI} includes all functions from this eclass";;
16 > esac
17 >
18
19 That error message might be a lie; think exheres-0. I think you can put
20 the "6" case first, and then change the "0|1|2|3|4|5" case to "*" to
21 have all others die with "not supported".