texlive[63541] Master/install-tl: do not warn about undef result from

commits+karl at tug.org commits+karl at tug.org
Sat Jun 11 00:07:44 CEST 2022


Revision: 63541
          http://tug.org/svn/texlive?view=revision&revision=63541
Author:   karl
Date:     2022-06-11 00:07:44 +0200 (Sat, 11 Jun 2022)
Log Message:
-----------
do not warn about undef result from Cwd::abs_path for TEXMFLOCAL; report from Magnus Ekhall, https://tug.org/pipermail/tex-live/2022-June/048203.html

Modified Paths:
--------------
    trunk/Master/install-tl

Modified: trunk/Master/install-tl
===================================================================
--- trunk/Master/install-tl	2022-06-10 21:11:06 UTC (rev 63540)
+++ trunk/Master/install-tl	2022-06-10 22:07:44 UTC (rev 63541)
@@ -1408,7 +1408,8 @@
       # by default TEXMFLOCAL = TEXDIR/../texmf-local, if this is the case
       # we don't have to write a new setting.
       my $deftmflocal = Cwd::abs_path($vars{'TEXDIR'}.'/../texmf-local');
-      if (Cwd::abs_path($vars{TEXMFLOCAL}) ne "$deftmflocal") {
+      if (!defined $deftmflocal       # in case abs_path couldn't resolve
+          || Cwd::abs_path($vars{TEXMFLOCAL}) ne "$deftmflocal") {
         push @changedtmf, "TEXMFLOCAL = $vars{'TEXMFLOCAL'}\n";
       }
     } elsif ($line =~ m/^TEXMFSYSVAR/) {



More information about the tex-live-commits mailing list.