texlive[53853] Master/tlpkg/TeXLive/TLCrypto.pm: fix missing return
commits+preining at tug.org
commits+preining at tug.org
Fri Feb 21 09:39:43 CET 2020
Revision: 53853
http://tug.org/svn/texlive?view=revision&revision=53853
Author: preining
Date: 2020-02-21 09:39:42 +0100 (Fri, 21 Feb 2020)
Log Message:
-----------
fix missing return values on checksum error
Modified Paths:
--------------
trunk/Master/tlpkg/TeXLive/TLCrypto.pm
Modified: trunk/Master/tlpkg/TeXLive/TLCrypto.pm
===================================================================
--- trunk/Master/tlpkg/TeXLive/TLCrypto.pm 2020-02-21 00:47:43 UTC (rev 53852)
+++ trunk/Master/tlpkg/TeXLive/TLCrypto.pm 2020-02-21 08:39:42 UTC (rev 53853)
@@ -247,6 +247,7 @@
if (!$localcopymode) {
tldie("$0: checksum error when downloading $file from $path: $m\n");
}
+ return(0, $r);
} elsif ($r == $VS_SIGNATURE_ERROR) {
tldie("$0: signature verification error of $file from $path: $m\n");
} elsif ($r == $VS_CONNECTION_ERROR) {
@@ -278,6 +279,8 @@
} else {
tldie("$0: unexpected return value from verify_checksum: $r\n");
}
+ # we should never come here, but just to be sure
+ return(0, $r);
}
More information about the tex-live-commits
mailing list.