summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLCrypto.pm
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2016-04-22 15:13:09 +0000
committerNorbert Preining <preining@logic.at>2016-04-22 15:13:09 +0000
commit0d11de1d3bdd70732215702fa366060087dfe66f (patch)
treeda454691e5a9cb4d02b963d568b423f73ebec0b3 /Master/tlpkg/TeXLive/TLCrypto.pm
parentbcdfb64a34e836234a015214433260970800f3ed (diff)
check for gpg not avail, return -3 in verify_*, act in tlmgr
git-svn-id: svn://tug.org/texlive/trunk@40681 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive/TLCrypto.pm')
-rw-r--r--Master/tlpkg/TeXLive/TLCrypto.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/Master/tlpkg/TeXLive/TLCrypto.pm b/Master/tlpkg/TeXLive/TLCrypto.pm
index 5c74beed9d3..2b0203ad348 100644
--- a/Master/tlpkg/TeXLive/TLCrypto.pm
+++ b/Master/tlpkg/TeXLive/TLCrypto.pm
@@ -129,7 +129,8 @@ 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, -2 on missing signature
-file, 1 on checksum, and 2 on signature errors.
+file, -3 if no gpg program is available, 1 on checksum,
+and 2 on signature errors.
In case of errors returns an informal message as second argument.
=cut
@@ -275,7 +276,8 @@ sub test_one_gpg {
Verifies a download of C<$url> into C<$file> by cheking the
gpg signature in C<$url.asc>.
-Returns 0 on success, -2 on missing signature file, 2 on signature error.
+Returns 0 on success, -2 on missing signature file, 2 on signature error,
+and -3 if no gpg is available.
In case of errors returns an informal message as second argument.
=cut
@@ -312,7 +314,7 @@ GPGERROR
} else {
debug("gpg prog not defined, no checking of signatures\n");
# we return 0 (= success) if not gpg is available
- return(0);
+ return(-3, "no gpg available");
}
# not reached
return (0);