Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: [PATCH] eutils.eclass: In EAPI conditionals, replace "has" by case statements.
Date: Tue, 01 Dec 2015 13:56:45
Message-Id: pan$e99e6$b7c671a8$38b0e92$ca469a30@cox.net
In Reply to: Re: [gentoo-dev] [PATCH] eutils.eclass: In EAPI conditionals, replace "has" by case statements. by Ulrich Mueller
1 Ulrich Mueller posted on Mon, 30 Nov 2015 07:52:59 +0100 as excerpted:
2
3 > It is slightly more complicated to match multiple patterns with [[ ]]
4 > because it requires multiple conditions, regexps, or extglob. We could
5 of
6 > course use a bracket expression like [[ ${EAPI:-0} = [012345] ]] but I
7 > find it ugly in this context (and it won't be able to check for EAPI
8 > 10 ;)
9 > ).
10
11 Of course we could switch to abc... after ...789, instead of switching to
12 double-digits. And then to ABC... which should cover us for a few
13 years...
14
15 If gentoo's still around and still using compatible EAPIs after Z...
16 that's a problem we'll be lucky to have! =:^)
17
18 --
19 Duncan - List replies preferred. No HTML msgs.
20 "Every nonfree program has a lord, a master --
21 and if you use the program, he is your master." Richard Stallman