summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-04-03 22:14:30 +0000
committerKarl Berry <karl@freefriends.org>2018-04-03 22:14:30 +0000
commitd73e029b665b866fe734e44508746a2cba513fd7 (patch)
tree773a22ca4d918a44b680c8bc5db1cb13bb314a90 /Master/texmf-dist
parent3fb0ad9f253c3ebf81ce763d3f6ddb3f9d9f4191 (diff)
(handle_gpg_config_settings): protect against
$opts/$config{'verify-repo'} being undefined. From Uwe Siart, 03 Apr 2018 09:32:37. git-svn-id: svn://tug.org/texlive/trunk@47273 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index 52b21f659fc..a634995c72b 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -6560,11 +6560,11 @@ sub handle_gpg_config_settings {
debug("will verify cryptographic signatures\n")
} else {
my $prefix = "$prg: No gpg found"; # just to shorten the strings
- if ($opts{'verify-repo'} eq "all") {
- # verification was requested on the command line, but did not succeed, die
+ if (defined($opts{'verify-repo'}) && $opts{'verify-repo'} eq "all") {
+ # verification requested on the command line, but did not succeed: die
tldie("$prefix, verification explicitly requested on command line, quitting.\n");
}
- if ($config{'verify-repo'} eq "all") {
+ if (defined($config{'verify-repo'}) && $config{'verify-repo'} eq "all") {
# verification explicitly requested in config file, but not gpg, die
tldie("$prefix, verification explicitly requested in config file, quitting.\n");
}