summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-03-06 18:17:10 +0100
committerMichał Górny <mgorny@gentoo.org>2018-04-23 20:00:53 +0200
commit3e7df7704b4512c6bca4ed1bee784c327f22c2ab (patch)
treef947881a686811f707d686a2740eb4450e256db3 /eclass/epatch.eclass
parenteapi7-ver.eclass: Explicitly indicate that EAPI 7+ includes it (diff)
downloadgentoo-3e7df7704b4512c6bca4ed1bee784c327f22c2ab.tar.gz
gentoo-3e7df7704b4512c6bca4ed1bee784c327f22c2ab.tar.bz2
gentoo-3e7df7704b4512c6bca4ed1bee784c327f22c2ab.zip
epatch.eclass: Ban in EAPI 7 (in favor of eapply)
Diffstat (limited to 'eclass/epatch.eclass')
-rw-r--r--eclass/epatch.eclass9
1 files changed, 8 insertions, 1 deletions
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