From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id C4629158128 for ; Tue, 17 Jun 2025 03:00:57 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id B12D834267D for ; Tue, 17 Jun 2025 03:00:57 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 0EC4E1104DE; Tue, 17 Jun 2025 03:00:51 +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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id F25271104DE for ; Tue, 17 Jun 2025 03:00:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id 7C34434267F for ; Tue, 17 Jun 2025 03:00:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C01CC29AF for ; Tue, 17 Jun 2025 03:00:48 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1750129236.fa5487854b3a38c2dfbb293b8ff09b643c9ac30a.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/emerge-webrsync X-VCS-Directories: bin/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: fa5487854b3a38c2dfbb293b8ff09b643c9ac30a X-VCS-Branch: master Date: Tue, 17 Jun 2025 03:00:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2cb7ab01-b8b1-4d89-b9d5-a36769d42be5 X-Archives-Hash: 0c116aad9c1046596ea51fbc4f0ca9d8 commit: fa5487854b3a38c2dfbb293b8ff09b643c9ac30a Author: Kerin Millar plushkava net> AuthorDate: Mon Jun 16 02:13:09 2025 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jun 17 03:00:36 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=fa548785 emerge-webrsync: localise the digest_content and md5sum_output vars A recent commit hoisted the local declarations to the top of their containing functions. The 'digest_content' and 'md5sum_output' variables were accidentally left out of it, causing them to become global variables. Render them local to the check_file_digest() function again. Fixes: 8c4be9acf1f9fca03df2a2434d3f8638470a32b1 Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> bin/emerge-webrsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync index 895835fa36..eddfc9957a 100755 --- a/bin/emerge-webrsync +++ b/bin/emerge-webrsync @@ -224,7 +224,7 @@ fetch_file() { check_file_digest() { local digest=$1 file=$2 - local r=1 + local digest_content md5sum_output r=1 [[ ${PORTAGE_QUIET} -eq 1 ]] || einfo "Checking digest ..."