From: | Ulrich Mueller <ulm@g.o> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Subject: | Re: [gentoo-dev] [PATCH] git-r3.eclass: Make EGIT_LIVE_* associative arrays | ||
Date: | Thu, 23 Jun 2016 00:12:38 | ||
Message-Id: | 22379.10597.268509.852610@a1i15.kph.uni-mainz.de | ||
In Reply to: | [gentoo-dev] [PATCH] git-r3.eclass: Make EGIT_LIVE_* associative arrays by Dan Douglas |
1 | >>>>> On Wed, 22 Jun 2016, Dan Douglas wrote: |
2 | |
3 | > + [[ |
4 | > + ( BASH_VERSINFO[0] -ge 4 || EAPI -ge 6 ) && |
5 | > + $(declare -p "EGIT_${livevars[idx+1]}" 2>/dev/null) == 'declare -A'* |
6 | > + ]] && ref=EGIT_${livevars[idx+1]}[\$PN] |
7 | |
8 | EAPI is not a number but a string, so don't use arithmetic comparison |
9 | to test for it |
10 | |
11 | Also, you cannot use bash 4 features in EAPI 5 or earlier. |
12 | |
13 | Ulrich |
Subject | Author |
---|---|
Re: [gentoo-dev] [PATCH] git-r3.eclass: Make EGIT_LIVE_* associative arrays | Dan Douglas <ormaaj@×××××.com> |