From: Michał Górny Date: Tue, 6 Mar 2018 17:17:10 +0000 (+0100) Subject: epatch.eclass: Ban in EAPI 7 (in favor of eapply) X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=3e7df7704b4512c6bca4ed1bee784c327f22c2ab;p=gentoo.git epatch.eclass: Ban in EAPI 7 (in favor of eapply) --- diff --git a/eclass/epatch.eclass b/eclass/epatch.eclass index 905f68f8ef22..8e03478c26ce 100644 --- a/eclass/epatch.eclass +++ b/eclass/epatch.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # @ECLASS: epatch.eclass @@ -11,6 +11,13 @@ if [[ -z ${_EPATCH_ECLASS} ]]; then +case ${EAPI:-0} in + 0|1|2|3|4|5|6) + ;; + *) + die "${ECLASS}: banned in EAPI=${EAPI}; use eapply* instead";; +esac + inherit estack # @VARIABLE: EPATCH_SOURCE