Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH 16/18] Disallow helpers in global scope in EAPI 6
Date: Mon, 01 Dec 2014 21:31:08
Message-Id: 1417469316-25052-17-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH 00/18] Updated EAPI 6 patch set by "Michał Górny"
1 Disallow calling most of the ebuild helpers in global scope since they
2 are meaningless in that context. Most of them are also prohibited by PMS
3 for all EAPIs, so EAPI 6 sounds like a good moment to finally enforce
4 that restriction.
5 ---
6 bin/eapi.sh | 2 +-
7 1 file changed, 1 insertion(+), 1 deletion(-)
8
9 diff --git a/bin/eapi.sh b/bin/eapi.sh
10 index e0ade02..5ab92f4 100644
11 --- a/bin/eapi.sh
12 +++ b/bin/eapi.sh
13 @@ -159,7 +159,7 @@ ___eapi_helpers_can_die() {
14 }
15
16 ___eapi_disallows_helpers_in_global_scope() {
17 - [[ ${1-${EAPI}} =~ ^(4-python|5-progress)$ ]]
18 + [[ ! ${1-${EAPI}} =~ ^(0|1|2|3|4|4-slot-abi|5|5-hdepend)$ ]]
19 }
20
21 ___eapi_unpack_is_case_sensitive() {
22 --
23 2.1.3

Replies