--- eclass/epatch.eclass | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/eclass/epatch.eclass b/eclass/epatch.eclass index 8e03478c26ce..e3178ff40020 100644 --- a/eclass/epatch.eclass +++ b/eclass/epatch.eclass @@ -12,7 +12,11 @@ if [[ -z ${_EPATCH_ECLASS} ]]; then case ${EAPI:-0} in - 0|1|2|3|4|5|6) + 0|1|2|3|4|5) + ;; + 6) + # for eqawarn + [[ -z ${_EUTILS_ECLASS} ]] && inherit eutils ;; *) die "${ECLASS}: banned in EAPI=${EAPI}; use eapply* instead";; @@ -103,6 +107,10 @@ EPATCH_FORCE="no" # # Refer to the other EPATCH_xxx variables for more customization of behavior. epatch() { + if [[ ${EAPI} == 6 ]]; then + eqawarn "epatch function is deprecated in EAPI ${EAPI}. Please use eapply instead." + fi + _epatch_draw_line() { # create a line of same length as input string [[ -z $1 ]] && set "$(printf "%65s" '')" -- 2.16.2