commit:     fa5487854b3a38c2dfbb293b8ff09b643c9ac30a
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Mon Jun 16 02:13:09 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> 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 <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> 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 ..."
 

Reply via email to