diff options
author | Karl Berry <karl@freefriends.org> | 2018-04-03 22:14:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-04-03 22:14:30 +0000 |
commit | d73e029b665b866fe734e44508746a2cba513fd7 (patch) | |
tree | 773a22ca4d918a44b680c8bc5db1cb13bb314a90 /Master | |
parent | 3fb0ad9f253c3ebf81ce763d3f6ddb3f9d9f4191 (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')
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/tlmgr.pl | 6 |
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"); } |