Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 2/6] epatch.eclass: Ban in EAPI 7 (in favor of eapply)
Date: Tue, 06 Mar 2018 17:26:44
Message-Id: 20180306172543.26683-3-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/6] EAPI 7 eclass deprecations by "Michał Górny"
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