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 06/15] unpacker.eclass: Use lowercase in unpacker_src_uri_depends
Date: Sun, 25 Sep 2022 18:25:09
Message-Id: 20220925182317.1559529-7-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 00/15] unpacker.eclass: Tests, bugfixes and GPKG support by "Michał Górny"
1 Transform the URIs to lowercase in unpacker_src_uri_depends() for
2 consistency with the behavior of _unpacker().
3
4 Signed-off-by: Michał Górny <mgorny@g.o>
5 ---
6 eclass/unpacker.eclass | 3 ++-
7 1 file changed, 2 insertions(+), 1 deletion(-)
8
9 diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
10 index 482cf141ee1d..e07c25d0ffa9 100644
11 --- a/eclass/unpacker.eclass
12 +++ b/eclass/unpacker.eclass
13 @@ -509,7 +509,8 @@ unpacker_src_uri_depends() {
14 fi
15
16 for uri in "$@" ; do
17 - case ${uri} in
18 + local m=${uri,,}
19 + case ${m} in
20 *.cpio.*|*.cpio)
21 d="app-arch/cpio" ;;
22 *.rar|*.RAR)
23 --
24 2.37.3

Replies