Gentoo Archives: gentoo-portage-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] [PATCH] bin/eapi.sh: Invert condition in ___eapi_unpack_supports_absolute_paths().
Date: Mon, 16 Feb 2015 18:21:55
Message-Id: 21730.13629.7080.241452@a1i15.kph.uni-mainz.de
1 This should return true starting with EAPI 6, and false for EAPI 5 and earlier.
2 ---
3 bin/eapi.sh | 2 +-
4 1 file changed, 1 insertion(+), 1 deletion(-)
5
6 diff --git a/bin/eapi.sh b/bin/eapi.sh
7 index f1c677e..528e6f2 100644
8 --- a/bin/eapi.sh
9 +++ b/bin/eapi.sh
10 @@ -175,7 +175,7 @@ ___eapi_unpack_is_case_sensitive() {
11 }
12
13 ___eapi_unpack_supports_absolute_paths() {
14 - [[ ${1-${EAPI-0}} =~ ^(0|1|2|3|4|4-python|4-slot-abi|5|5-hdepend)$ ]]
15 + [[ ! ${1-${EAPI-0}} =~ ^(0|1|2|3|4|4-python|4-slot-abi|5|5-hdepend)$ ]]
16 }
17
18 ___eapi_die_can_respect_nonfatal() {
19 --
20 2.3.0

Replies