Gentoo Archives: gentoo-dev

From: John Helmert III <ajak@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 06/15] unpacker.eclass: Use lowercase in unpacker_src_uri_depends
Date: Sun, 25 Sep 2022 21:04:13
Message-Id: YzDCR9ImGEdE7iZE@gentoo.org
In Reply to: [gentoo-dev] [PATCH 06/15] unpacker.eclass: Use lowercase in unpacker_src_uri_depends by "Michał Górny"
1 On Sun, Sep 25, 2022 at 08:23:08PM +0200, Michał Górny wrote:
2 > Transform the URIs to lowercase in unpacker_src_uri_depends() for
3 > consistency with the behavior of _unpacker().
4 >
5 > Signed-off-by: Michał Górny <mgorny@g.o>
6 > ---
7 > eclass/unpacker.eclass | 3 ++-
8 > 1 file changed, 2 insertions(+), 1 deletion(-)
9 >
10 > diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
11 > index 482cf141ee1d..e07c25d0ffa9 100644
12 > --- a/eclass/unpacker.eclass
13 > +++ b/eclass/unpacker.eclass
14 > @@ -509,7 +509,8 @@ unpacker_src_uri_depends() {
15 > fi
16 >
17 > for uri in "$@" ; do
18 > - case ${uri} in
19 > + local m=${uri,,}
20 > + case ${m} in
21 > *.cpio.*|*.cpio)
22 > d="app-arch/cpio" ;;
23 > *.rar|*.RAR)
24
25 If m is always lowercased, no need to check for uppercased extensions?
26
27 > --
28 > 2.37.3
29 >
30 >

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies