From d73e029b665b866fe734e44508746a2cba513fd7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 3 Apr 2018 22:14:30 +0000 Subject: (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 --- Master/texmf-dist/scripts/texlive/tlmgr.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Master') 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"); } -- cgit v1.2.3