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 04/15] unpacker.eclass: Remove support for EAPI 5
Date: Sun, 25 Sep 2022 18:24:37
Message-Id: 20220925182317.1559529-5-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 00/15] unpacker.eclass: Tests, bugfixes and GPKG support by "Michał Górny"
1 There are no ebuilds using it in EAPI 5 anymore, and it is the last EAPI
2 requiring support for bash 3.2.
3
4 Signed-off-by: Michał Górny <mgorny@g.o>
5 ---
6 eclass/unpacker.eclass | 6 +++---
7 1 file changed, 3 insertions(+), 3 deletions(-)
8
9 diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
10 index 1f2f09e33ad6..915a31c86437 100644
11 --- a/eclass/unpacker.eclass
12 +++ b/eclass/unpacker.eclass
13 @@ -4,7 +4,7 @@
14 # @ECLASS: unpacker.eclass
15 # @MAINTAINER:
16 # base-system@g.o
17 -# @SUPPORTED_EAPIS: 5 6 7 8
18 +# @SUPPORTED_EAPIS: 6 7 8
19 # @BLURB: helpers for extraneous file formats and consistent behavior across EAPIs
20 # @DESCRIPTION:
21 # Some extraneous file formats are not part of PMS, or are only in certain
22 @@ -16,7 +16,7 @@
23 # - support partial unpacks?
24
25 case ${EAPI:-0} in
26 - [5678]) ;;
27 + [678]) ;;
28 *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
29 esac
30
31 @@ -440,7 +440,7 @@ _unpacker() {
32 esac
33
34 # 7z, rar and lha/lzh are handled by package manager in EAPI < 8
35 - if [[ ${EAPI} != [567] ]]; then
36 + if [[ ${EAPI} != [67] ]]; then
37 case ${m} in
38 *.7z)
39 arch="unpack_7z" ;;
40 --
41 2.37.3