commit: 3e7df7704b4512c6bca4ed1bee784c327f22c2ab
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 6 17:17:10 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Apr 23 18:00:53 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e7df770
epatch.eclass: Ban in EAPI 7 (in favor of eapply)
eclass/epatch.eclass | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/eclass/epatch.eclass b/eclass/epatch.eclass
index 905f68f8ef2..8e03478c26c 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