texlive[47273] Master/texmf-dist/scripts/texlive/tlmgr.pl:

commits+karl at tug.org commits+karl at tug.org
Wed Apr 4 00:14:30 CEST 2018


Revision: 47273
          http://tug.org/svn/texlive?view=revision&revision=47273
Author:   karl
Date:     2018-04-04 00:14:30 +0200 (Wed, 04 Apr 2018)
Log Message:
-----------
(handle_gpg_config_settings): protect against
$opts/$config{'verify-repo'} being undefined. From
Uwe Siart, 03 Apr 2018 09:32:37.

Modified Paths:
--------------
    trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl

Modified: trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl	2018-04-03 21:38:18 UTC (rev 47272)
+++ trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl	2018-04-03 22:14:30 UTC (rev 47273)
@@ -6560,11 +6560,11 @@
       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");
       }



More information about the tex-live-commits mailing list