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 3/6] epatch.eclass: Deprecate in EAPI 6
Date: Tue, 06 Mar 2018 17:27:10
Message-Id: 20180306172543.26683-4-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/6] EAPI 7 eclass deprecations by "Michał Górny"
1 ---
2 eclass/epatch.eclass | 10 +++++++++-
3 1 file changed, 9 insertions(+), 1 deletion(-)
4
5 diff --git a/eclass/epatch.eclass b/eclass/epatch.eclass
6 index 8e03478c26ce..e3178ff40020 100644
7 --- a/eclass/epatch.eclass
8 +++ b/eclass/epatch.eclass
9 @@ -12,7 +12,11 @@
10 if [[ -z ${_EPATCH_ECLASS} ]]; then
11
12 case ${EAPI:-0} in
13 - 0|1|2|3|4|5|6)
14 + 0|1|2|3|4|5)
15 + ;;
16 + 6)
17 + # for eqawarn
18 + [[ -z ${_EUTILS_ECLASS} ]] && inherit eutils
19 ;;
20 *)
21 die "${ECLASS}: banned in EAPI=${EAPI}; use eapply* instead";;
22 @@ -103,6 +107,10 @@ EPATCH_FORCE="no"
23 #
24 # Refer to the other EPATCH_xxx variables for more customization of behavior.
25 epatch() {
26 + if [[ ${EAPI} == 6 ]]; then
27 + eqawarn "epatch function is deprecated in EAPI ${EAPI}. Please use eapply instead."
28 + fi
29 +
30 _epatch_draw_line() {
31 # create a line of same length as input string
32 [[ -z $1 ]] && set "$(printf "%65s" '')"
33 --
34 2.16.2

Replies

Subject Author
Re: [gentoo-dev] [PATCH 3/6] epatch.eclass: Deprecate in EAPI 6 Ulrich Mueller <ulm@g.o>