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 E7368158094 for ; Sun, 25 Sep 2022 21:06:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 33E12E107F; Sun, 25 Sep 2022 21:06:04 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E74A1E1079 for ; Sun, 25 Sep 2022 21:06:03 +0000 (UTC) Date: Sun, 25 Sep 2022 16:06:01 -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="dSGyjMPo1/Dl0zWn" Content-Disposition: inline In-Reply-To: X-Archives-Salt: 1b4e8703-48bd-41a7-9af0-b39f4520f0fa X-Archives-Hash: 5d718bc303f88a66c41cd54cdb7e97a5 --dSGyjMPo1/Dl0zWn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 25, 2022 at 04:04:07PM -0500, John Helmert III wrote: > 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) >=20 > If m is always lowercased, no need to check for uppercased extensions? Sorry, this was done in the next patch >=20 > > --=20 > > 2.37.3 > >=20 > >=20 --dSGyjMPo1/Dl0zWn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQyG9yfCrmO0LPSdG2gXq2+aa/JtQUCYzDCuAAKCRCgXq2+aa/J tbgKAP4+Beo7R9ab7xfY/E58fQwm3i7eNAL29Re8xZY7v5z+yAEA7eBwEeDr983O W+tTS6UzzGKAfp76DG4PwXcYxepOcwA= =RUTr -----END PGP SIGNATURE----- --dSGyjMPo1/Dl0zWn--