Re: Re: [PATCH] ant-tasks.eclass: use eapi7-ver
"Marty E. Plummer" <[email protected]> Tue, 22 May 2018 01:59:51 -0500
| Newsgroups | gmane.linux.gentoo.devel,gmane.linux.gentoo.java |
|---|---|
| Message-ID | <20180522065950.mdnkgzb6bmkqokhi@proprietary-killer> |
On Tue, May 22, 2018 at 08:27:27AM +0200, Ulrich Mueller wrote:
> >>>>> On Mon, 21 May 2018, Marty E Plummer wrote:
>
> > On Tue, May 22, 2018 at 05:57:35AM +0200, Micha?? G??rny wrote:
>
> [Please check you mailer configuration. It's sending MIME, but
> charset=us-ascii cannot represent these chars.]
>
> >> Always check for old EAPIs, instead of expecting people to keep updating
> >> this forever.
> >>
> > Would you prefer something like
> > [[ ${EAPI} ~= [0-6] ]] && inherit eapi7-ver, then?
>
> The regexp operator is =~ not ~=. Also it will match partial
> expressions, so it will fail in EAPI 10.
>
Fair, I knew it was something like that. Also, by the time EAPI 10 hits
this section of code should have been long culled since eapi7-ver's
functions are 'native' in EAPI 7.
> Use this instead: [[ ${EAPI:-0} == [0123456] ]]
>
Fair enough, that should do the trick and keep everyone happy in the
long run.
> Ulrich