From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C5AB6158094 for ; Sun, 25 Sep 2022 21:04:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 75C85E102F; Sun, 25 Sep 2022 21:04:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 31533E102A for ; Sun, 25 Sep 2022 21:04:10 +0000 (UTC) Date: Sun, 25 Sep 2022 16:04:07 -0500 From: John Helmert III To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [PATCH 06/15] unpacker.eclass: Use lowercase in unpacker_src_uri_depends Message-ID: References: <20220925182317.1559529-1-mgorny@gentoo.org> <20220925182317.1559529-7-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xtuSX4nxxi6+XwbM" Content-Disposition: inline In-Reply-To: <20220925182317.1559529-7-mgorny@gentoo.org> X-Archives-Salt: 71903341-1876-4603-8cf0-c64f986801ec X-Archives-Hash: 20d95562db2fcb8ff3829042e931546e --xtuSX4nxxi6+XwbM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 25, 2022 at 08:23:08PM +0200, Micha=C5=82 G=C3=B3rny wrote: > Transform the URIs to lowercase in unpacker_src_uri_depends() for > consistency with the behavior of _unpacker(). >=20 > Signed-off-by: Micha=C5=82 G=C3=B3rny > --- > eclass/unpacker.eclass | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass > index 482cf141ee1d..e07c25d0ffa9 100644 > --- a/eclass/unpacker.eclass > +++ b/eclass/unpacker.eclass > @@ -509,7 +509,8 @@ unpacker_src_uri_depends() { > fi > =20 > for uri in "$@" ; do > - case ${uri} in > + local m=3D${uri,,} > + case ${m} in > *.cpio.*|*.cpio) > d=3D"app-arch/cpio" ;; > *.rar|*.RAR) If m is always lowercased, no need to check for uppercased extensions? > --=20 > 2.37.3 >=20 >=20 --xtuSX4nxxi6+XwbM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQyG9yfCrmO0LPSdG2gXq2+aa/JtQUCYzDCRAAKCRCgXq2+aa/J tb9yAQC0WHYpCYfd/JmpYAv/i6dGYh52vANMOMNDK2RB6ipzFAD+JhQcOKDhUcVg Uk74T+J301+o2mwPDNaaj4s33El7OwI= =BCoe -----END PGP SIGNATURE----- --xtuSX4nxxi6+XwbM--