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

Attachments

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