commit:     382e9878e970dd776b5f4d1c09eb59eea711f079
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 28 18:06:49 2022 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Jul 11 04:25:57 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=382e9878

epatch.eclass: drop support for EAPI 0 to 4

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 eclass/epatch.eclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/eclass/epatch.eclass b/eclass/epatch.eclass
index 7c53e5fcf539..181cd8963e4f 100644
--- a/eclass/epatch.eclass
+++ b/eclass/epatch.eclass
@@ -4,7 +4,7 @@
 # @ECLASS: epatch.eclass
 # @MAINTAINER:
 # [email protected]
-# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6
+# @SUPPORTED_EAPIS: 5 6
 # @BLURB: easy patch application functions
 # @DEPRECATED: eapply from EAPI 7
 # @DESCRIPTION:
@@ -13,11 +13,11 @@
 
 if [[ -z ${_EPATCH_ECLASS} ]]; then
 
-case ${EAPI:-0} in
-       0|1|2|3|4|5|6)
+case ${EAPI} in
+       5|6)
                ;;
        *)
-               die "${ECLASS}: banned in EAPI=${EAPI}; use eapply* instead";;
+               die "${ECLASS}: EAPI ${EAPI:-0} not supported";;
 esac
 
 inherit estack

Reply via email to