commit:     8542b84fd65843c3dc93769b5b95798ee2a2f818
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 17 23:20:37 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 13 08:05:27 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8542b84f

git-r3.eclass: Ban EAPIs 0 through 3

The code already uses USE dependencies which are not valid for EAPIs
0 and 1. Furthermore, according to qa-reports the eclass is not used
in any EAPI older than 4.

 eclass/git-r3.eclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass
index 279f0326931..c5c76232eb4 100644
--- a/eclass/git-r3.eclass
+++ b/eclass/git-r3.eclass
@@ -10,7 +10,10 @@
 # git as remote repository.
 
 case "${EAPI:-0}" in
-       0|1|2|3|4|5|6|7)
+       0|1|2|3)
+               die "Unsupported EAPI=${EAPI} (obsolete) for ${ECLASS}"
+               ;;
+       4|5|6|7)
                ;;
        *)
                die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"

Reply via email to