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 07/15] unpacker.eclass: Remove uppercase RAR/LHA variants
Date: Sun, 25 Sep 2022 18:25:26
Message-Id: 20220925182317.1559529-8-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 00/15] unpacker.eclass: Tests, bugfixes and GPKG support by "Michał Górny"
1 Remove the uppercase variants of RAR/LHA that were copied from Portage
2 implementation. The functions always convert filenames to lowercase,
3 so accounting for them is redundant.
4
5 Signed-off-by: Michał Górny <mgorny@g.o>
6 ---
7 eclass/unpacker.eclass | 8 ++++----
8 1 file changed, 4 insertions(+), 4 deletions(-)
9
10 diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
11 index e07c25d0ffa9..ca6761488100 100644
12 --- a/eclass/unpacker.eclass
13 +++ b/eclass/unpacker.eclass
14 @@ -444,9 +444,9 @@ _unpacker() {
15 case ${m} in
16 *.7z)
17 arch="unpack_7z" ;;
18 - *.rar|*.RAR)
19 + *.rar)
20 arch="unpack_rar" ;;
21 - *.LHA|*.LHa|*.lha|*.lzh)
22 + *.lha|*.lzh)
23 arch="unpack_lha" ;;
24 esac
25 fi
26 @@ -513,7 +513,7 @@ unpacker_src_uri_depends() {
27 case ${m} in
28 *.cpio.*|*.cpio)
29 d="app-arch/cpio" ;;
30 - *.rar|*.RAR)
31 + *.rar)
32 d="app-arch/unrar" ;;
33 *.7z)
34 d="app-arch/p7zip" ;;
35 @@ -525,7 +525,7 @@ unpacker_src_uri_depends() {
36 d="|| ( app-arch/plzip app-arch/pdlzip app-arch/lzip )" ;;
37 *.zst)
38 d="app-arch/zstd" ;;
39 - *.LHA|*.LHa|*.lha|*.lzh)
40 + *.lha|*.lzh)
41 d="app-arch/lha" ;;
42 esac
43 deps+=" ${d}"
44 --
45 2.37.3