1 |
--- |
2 |
eclass/epatch.eclass | 9 ++++++++- |
3 |
1 file changed, 8 insertions(+), 1 deletion(-) |
4 |
|
5 |
diff --git a/eclass/epatch.eclass b/eclass/epatch.eclass |
6 |
index 905f68f8ef22..8e03478c26ce 100644 |
7 |
--- a/eclass/epatch.eclass |
8 |
+++ b/eclass/epatch.eclass |
9 |
@@ -1,4 +1,4 @@ |
10 |
-# Copyright 1999-2017 Gentoo Foundation |
11 |
+# Copyright 1999-2018 Gentoo Foundation |
12 |
# Distributed under the terms of the GNU General Public License v2 |
13 |
|
14 |
# @ECLASS: epatch.eclass |
15 |
@@ -11,6 +11,13 @@ |
16 |
|
17 |
if [[ -z ${_EPATCH_ECLASS} ]]; then |
18 |
|
19 |
+case ${EAPI:-0} in |
20 |
+ 0|1|2|3|4|5|6) |
21 |
+ ;; |
22 |
+ *) |
23 |
+ die "${ECLASS}: banned in EAPI=${EAPI}; use eapply* instead";; |
24 |
+esac |
25 |
+ |
26 |
inherit estack |
27 |
|
28 |
# @VARIABLE: EPATCH_SOURCE |
29 |
-- |
30 |
2.16.2 |