Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 13 Jun 2018 08:05:43
Message-Id: 1528877127.8542b84fd65843c3dc93769b5b95798ee2a2f818.mgorny@gentoo
1 commit: 8542b84fd65843c3dc93769b5b95798ee2a2f818
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 17 23:20:37 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 13 08:05:27 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8542b84f
7
8 git-r3.eclass: Ban EAPIs 0 through 3
9
10 The code already uses USE dependencies which are not valid for EAPIs
11 0 and 1. Furthermore, according to qa-reports the eclass is not used
12 in any EAPI older than 4.
13
14 eclass/git-r3.eclass | 5 ++++-
15 1 file changed, 4 insertions(+), 1 deletion(-)
16
17 diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass
18 index 279f0326931..c5c76232eb4 100644
19 --- a/eclass/git-r3.eclass
20 +++ b/eclass/git-r3.eclass
21 @@ -10,7 +10,10 @@
22 # git as remote repository.
23
24 case "${EAPI:-0}" in
25 - 0|1|2|3|4|5|6|7)
26 + 0|1|2|3)
27 + die "Unsupported EAPI=${EAPI} (obsolete) for ${ECLASS}"
28 + ;;
29 + 4|5|6|7)
30 ;;
31 *)
32 die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"