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 8834F1581D3 for ; Wed, 22 May 2024 02:05:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C74ABE2A3F; Wed, 22 May 2024 02:05:22 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 49EFAE2A36 for ; Wed, 22 May 2024 02:05:22 +0000 (UTC) From: Mike Gilbert To: gentoo-dev@lists.gentoo.org Cc: Mike Gilbert Subject: [gentoo-dev] [PATCH v2] verify-sig.eclass: avoid calling unpack on sig files Date: Tue, 21 May 2024 22:05:19 -0400 Message-ID: <20240522020519.1845786-1-floppym@gentoo.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240522015830.1841810-1-floppym@gentoo.org> References: <20240522015830.1841810-1-floppym@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-Transfer-Encoding: 8bit X-Archives-Salt: 6fa357f3-9ddd-4187-8f6e-2a6b2154b618 X-Archives-Hash: 4be44c526ea409dbd0088c4c31e77304 Signed-off-by: Mike Gilbert --- eclass/verify-sig.eclass | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass index b74ed78290aa..4d48c9ed8503 100644 --- a/eclass/verify-sig.eclass +++ b/eclass/verify-sig.eclass @@ -426,10 +426,14 @@ verify-sig_src_unpack() { verify-sig_verify_detached \ "${DISTDIR}/${f%.*}" "${DISTDIR}/${f}" done - fi - # finally, unpack the distfiles - default_src_unpack + # finally, unpack the distfiles + if [[ ${#distfiles[@]} -gt 0 ]]; then + unpack "${distfiles[@]}" + fi + else + default_src_unpack + fi } fi -- 2.45.1