summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLCrypto.pm
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2021-04-03 12:05:04 +0000
committerNorbert Preining <preining@logic.at>2021-04-03 12:05:04 +0000
commit724e62d3402aa932bf77941d26181dde264bca44 (patch)
treef5765180070438c30d536ea102047447fcba8ed2 /Master/tlpkg/TeXLive/TLCrypto.pm
parent4309f4e58a3a53f54be18d05b07fa6663abe9a75 (diff)
fix undefined when no checksum method is available
git-svn-id: svn://tug.org/texlive/trunk@58709 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive/TLCrypto.pm')
-rw-r--r--Master/tlpkg/TeXLive/TLCrypto.pm4
1 files changed, 2 insertions, 2 deletions
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