diff options
Diffstat (limited to 'Master/tlpkg/TeXLive/TLUtils.pm')
-rw-r--r-- | Master/tlpkg/TeXLive/TLUtils.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index dc3c909df08..9eb2c89be25 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -3753,8 +3753,8 @@ sub slurp_file { Verifies that C<$file> has checksum C<$checksum_url>, and if gpg is available also verifies that the checksum is signed. -Returns 0 on success, -1 on connection error, 1 on checksum, and -2 on signature errors. +Returns 0 on success, -1 on connection error, -2 on missing signature +file, 1 on checksum, and 2 on signature errors. In case of errors returns an informal message as second argument. =cut @@ -3831,7 +3831,7 @@ sub download_to_temp_or_file { Verifies a download of C<$url> into C<$file> by cheking the gpg signature in C<$url.asc>. -Returns 0 on success, -1 on connection error, 2 on signature error. +Returns 0 on success, -2 on missing signature file, 2 on signature error. In case of errors returns an informal message as second argument. =cut @@ -3862,7 +3862,7 @@ GPGERROR } } else { debug("no access to cryptographic signature $signature_url\n"); - return(-1); + return(-2, "no access to cryptographic signature"); } } else { debug("gpg prog not defined, no checking of signatures\n"); |