git-2.eclass: Ban for EAPI=6
authorMichał Górny <mgorny@gentoo.org>
Fri, 13 Nov 2015 18:45:16 +0000 (19:45 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 13 Nov 2015 23:52:53 +0000 (00:52 +0100)
Ban deprecated git-2.eclass to avoid it being accidentally enabled for
EAPI=6.

eclass/git-2.eclass

index 3cb60790dd4cf6fbadf4ce95d8f3be5a970bd32d..6101ad410345627da3ea50b65450942d7df2dc01 100644 (file)
 #
 # This eclass is DEPRECATED. Please use git-r3 instead.
 
+if [[ ${EAPI} == 6 ]]; then
+       die "${ECLASS}.eclass is banned in EAPI ${EAPI}"
+fi
+
 # This eclass support all EAPIs
 EXPORT_FUNCTIONS src_unpack