Re: Re: [PATCH] ant-tasks.eclass: use eapi7-ver

Ulrich Mueller <[email protected]> Tue, 22 May 2018 08:27:27 +0200
Newsgroups gmane.linux.gentoo.devel,gmane.linux.gentoo.java
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--pgp+signed+Qyc2mLHaBIOetlK
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

>>>>> 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.

Use this instead: [[ ${EAPI:-0} == [0123456] ]]

Ulrich

--pgp+signed+Qyc2mLHaBIOetlK
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQEcBAEBCAAGBQJbA7hNAAoJEMMJBoUcYcJzIMMIAKC2SC62A6I3/o5a0VmVGQ9O
guz2YHAqoFy9PTwtfgQcSWWM2PtC+ZvfojUsWu6s2VIVzWeBLUJhypOelLQrCg41
zYFrWpoRsJV1ORUuduh/6k6kgtJypt/KAdn7DGmSAlEKNp+VJJM8+Pa0pV3beNAl
jTKWV0W6EzhO8vcypGVNZwUcneoMwFNYSPrKyVSmoVQJTeV99/sRTI0+TM0Hvh+Y
yU4DgWsw8UEsOI6hgGKo2xTFUvi0NeWGA+e1Om2qvKcFVtyMjY3lvFRIaO2+XdV4
/R2gQ3pE8AozNB/dcSqtKRlLs09868ep4RDGv6qgzoDtjdLFhxDeEotY2jOzLqo=
=rKQO
-----END PGP SIGNATURE-----

--pgp+signed+Qyc2mLHaBIOetlK--