From 724e62d3402aa932bf77941d26181dde264bca44 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 3 Apr 2021 12:05:04 +0000 Subject: fix undefined when no checksum method is available git-svn-id: svn://tug.org/texlive/trunk@58709 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/TeXLive/TLCrypto.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Master/tlpkg/TeXLive') diff --git a/Master/tlpkg/TeXLive/TLCrypto.pm b/Master/tlpkg/TeXLive/TLCrypto.pm index aa81416604c..58ad1f495dc 100644 --- a/Master/tlpkg/TeXLive/TLCrypto.pm +++ b/Master/tlpkg/TeXLive/TLCrypto.pm @@ -311,7 +311,7 @@ sub verify_checksum { my ($file, $checksum_url) = @_; # don't do anything if we cannot determine a checksum method # return -2 which is as much as missing signature - return($VS_UNSIGNED) if (!$::checksum_method); + return($VS_UNSIGNED, "no checksum method found") if (!$::checksum_method); my $checksum_file = TeXLive::TLUtils::download_to_temp_or_file($checksum_url); @@ -359,7 +359,7 @@ sub verify_checksum { # we are still here, so checksum also succeeded debug("checksum of local copy identical with remote hash\n"); - return(0); + return($VS_VERIFIED); } # emacs-page -- cgit v1.2.3