Gentoo Archives: gentoo-dev

From: "Marty E. Plummer" <hanetzer@×××××××××.com>
To: gentoo-dev@l.g.o
Cc: gentoo-java@l.g.o
Subject: Re: [gentoo-dev] Re: [PATCH] ant-tasks.eclass: use eapi7-ver
Date: Tue, 22 May 2018 07:00:36
Message-Id: 20180522065950.mdnkgzb6bmkqokhi@proprietary-killer
In Reply to: Re: [gentoo-dev] Re: [PATCH] ant-tasks.eclass: use eapi7-ver by Ulrich Mueller
1 On Tue, May 22, 2018 at 08:27:27AM +0200, Ulrich Mueller wrote:
2 > >>>>> On Mon, 21 May 2018, Marty E Plummer wrote:
3 >
4 > > On Tue, May 22, 2018 at 05:57:35AM +0200, Micha?? G??rny wrote:
5 >
6 > [Please check you mailer configuration. It's sending MIME, but
7 > charset=us-ascii cannot represent these chars.]
8 >
9 > >> Always check for old EAPIs, instead of expecting people to keep updating
10 > >> this forever.
11 > >>
12 > > Would you prefer something like
13 > > [[ ${EAPI} ~= [0-6] ]] && inherit eapi7-ver, then?
14 >
15 > The regexp operator is =~ not ~=. Also it will match partial
16 > expressions, so it will fail in EAPI 10.
17 >
18 Fair, I knew it was something like that. Also, by the time EAPI 10 hits
19 this section of code should have been long culled since eapi7-ver's
20 functions are 'native' in EAPI 7.
21 > Use this instead: [[ ${EAPI:-0} == [0123456] ]]
22 >
23 Fair enough, that should do the trick and keep everyone happy in the
24 long run.
25 > Ulrich

Replies

Subject Author
Re: [gentoo-dev] Re: [PATCH] ant-tasks.eclass: use eapi7-ver "Marty E. Plummer" <hanetzer@×××××××××.com>