Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
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 06:27:39
Message-Id: 23299.47183.152934.606225@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] Re: [PATCH] ant-tasks.eclass: use eapi7-ver by "Marty E. Plummer"
1 >>>>> On Mon, 21 May 2018, Marty E Plummer wrote:
2
3 > On Tue, May 22, 2018 at 05:57:35AM +0200, Micha?? G??rny wrote:
4
5 [Please check you mailer configuration. It's sending MIME, but
6 charset=us-ascii cannot represent these chars.]
7
8 >> Always check for old EAPIs, instead of expecting people to keep updating
9 >> this forever.
10 >>
11 > Would you prefer something like
12 > [[ ${EAPI} ~= [0-6] ]] && inherit eapi7-ver, then?
13
14 The regexp operator is =~ not ~=. Also it will match partial
15 expressions, so it will fail in EAPI 10.
16
17 Use this instead: [[ ${EAPI:-0} == [0123456] ]]
18
19 Ulrich

Replies

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