summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-08-12 11:14:26 +0200
committerMichał Górny <mgorny@gentoo.org>2018-08-15 09:33:33 +0200
commit53119330b15263a591e69b42bdb8538a515c308a (patch)
tree3a0c94719aa390f47bb98cb1a05176a2160be55c /eclass
parenttoolchain.eclass: add @SUPPORTED_EAPIS (diff)
downloadgentoo-53119330b15263a591e69b42bdb8538a515c308a.tar.gz
gentoo-53119330b15263a591e69b42bdb8538a515c308a.tar.bz2
gentoo-53119330b15263a591e69b42bdb8538a515c308a.zip
git-2.eclass: Extend the ban to all future EAPIs
Diffstat (limited to 'eclass')
-rw-r--r--eclass/git-2.eclass9
1 files changed, 5 insertions, 4 deletions
diff --git a/eclass/git-2.eclass b/eclass/git-2.eclass
index 63568c155775..6a21834ac003 100644
--- a/eclass/git-2.eclass
+++ b/eclass/git-2.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: git-2.eclass
@@ -11,9 +11,10 @@
#
# This eclass is DEPRECATED. Please use git-r3 instead.
-if [[ ${EAPI} == 6 ]]; then
- die "${ECLASS}.eclass is banned in EAPI ${EAPI}"
-fi
+case ${EAPI:-0} in
+ 0|1|2|3|4|5) ;;
+ *) die "${ECLASS}.eclass is banned in EAPI ${EAPI}";;
+esac
# This eclass support all EAPIs.
EXPORT_FUNCTIONS src_unpack