git-2.eclass: Extend the ban to all future EAPIs
authorMichał Górny <mgorny@gentoo.org>
Sun, 12 Aug 2018 09:14:26 +0000 (11:14 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 15 Aug 2018 07:33:33 +0000 (09:33 +0200)
eclass/git-2.eclass

index 63568c155775d704bc48cf3b3d9f28225daae695..6a21834ac003adbb1bf67a7ec4288eb1955b3e81 100644 (file)
@@ -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
 #
 # 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