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 25404158094 for ; Sun, 25 Sep 2022 18:25:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CCC572BC09E; Sun, 25 Sep 2022 18:23:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 975D42BC09B for ; Sun, 25 Sep 2022 18:23:30 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 07/15] unpacker.eclass: Remove uppercase RAR/LHA variants Date: Sun, 25 Sep 2022 20:23:09 +0200 Message-Id: <20220925182317.1559529-8-mgorny@gentoo.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220925182317.1559529-1-mgorny@gentoo.org> References: <20220925182317.1559529-1-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: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 5154ad11-b31d-40bc-9899-7588d51ee0ca X-Archives-Hash: aea4f1ee40c3b40e21a12abdae29373c Remove the uppercase variants of RAR/LHA that were copied from Portage implementation. The functions always convert filenames to lowercase, so accounting for them is redundant. Signed-off-by: Michał Górny --- eclass/unpacker.eclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass index e07c25d0ffa9..ca6761488100 100644 --- a/eclass/unpacker.eclass +++ b/eclass/unpacker.eclass @@ -444,9 +444,9 @@ _unpacker() { case ${m} in *.7z) arch="unpack_7z" ;; - *.rar|*.RAR) + *.rar) arch="unpack_rar" ;; - *.LHA|*.LHa|*.lha|*.lzh) + *.lha|*.lzh) arch="unpack_lha" ;; esac fi @@ -513,7 +513,7 @@ unpacker_src_uri_depends() { case ${m} in *.cpio.*|*.cpio) d="app-arch/cpio" ;; - *.rar|*.RAR) + *.rar) d="app-arch/unrar" ;; *.7z) d="app-arch/p7zip" ;; @@ -525,7 +525,7 @@ unpacker_src_uri_depends() { d="|| ( app-arch/plzip app-arch/pdlzip app-arch/lzip )" ;; *.zst) d="app-arch/zstd" ;; - *.LHA|*.LHa|*.lha|*.lzh) + *.lha|*.lzh) d="app-arch/lha" ;; esac deps+=" ${d}" -- 2.37.3