• [gentoo-dev] [PATCH 04/15] unpacker.eclass: Remove support for EAPI 5

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Sun Sep 25 20:30:02 2022
    There are no ebuilds using it in EAPI 5 anymore, and it is the last EAPI requiring support for bash 3.2.

    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    ---
    eclass/unpacker.eclass | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)

    diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
    index 1f2f09e33ad6..915a31c86437 100644
    --- a/eclass/unpacker.eclass
    +++ b/eclass/unpacker.eclass
    @@ -4,7 +4,7 @@
    # @ECLASS: unpacker.eclass
    # @MAINTAINER:
    # base-system@gentoo.org
    -# @SUPPORTED_EAPIS: 5 6 7 8
    +# @SUPPORTED_EAPIS: 6 7 8
    # @BLURB: helpers for extraneous file formats and consistent behavior across EAPIs
    # @DESCRIPTION:
    # Some extraneous file formats are not part of PMS, or are only in certain
    @@ -16,7 +16,7 @@
    # - support partial unpacks?

    case ${EAPI:-0} in
    - [5678]) ;;
    + [678]) ;;
    *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
    esac

    @@ -440,7 +440,7 @@ _unpacker() {
    esac

    # 7z, rar and lha/lzh are handled by package manager in EAPI < 8
    - if [[ ${EAPI} != [567] ]]; then
    + if [[ ${EAPI} != [67] ]]; then
    case ${m} in
    *.7z)
    arch="unpack_7z" ;;
    --
    2.37.3

    --- SoupGate-Win32 v1.05