From 9fa7c623c8c2840533d20f699c7f3a79079d27cc Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 1 Nov 2023 17:28:01 +0000 Subject: (callback_build_formats): set whatarg to the empty string if it's undefined (as it is for the invocations from "missing" and "all"). (Called with --all from, e.g., tlmgr paper letter.) Report and analysis from Mike Maxwell, https://tug.org/pipermail/tex-live/2023-September/049526.html git-svn-id: svn://tug.org/texlive/trunk@68715 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/fmtutil.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Master/texmf-dist/scripts/texlive/fmtutil.pl b/Master/texmf-dist/scripts/texlive/fmtutil.pl index 03183d69970..c8288f670cf 100755 --- a/Master/texmf-dist/scripts/texlive/fmtutil.pl +++ b/Master/texmf-dist/scripts/texlive/fmtutil.pl @@ -383,6 +383,11 @@ sub log_to_status { sub callback_build_formats { my ($what, $whatarg) = @_; + # sometimes (missing, all) there is no argument passed. + # Avoid warning from undef value being logged. + # https://tug.org/pipermail/tex-live/2023-September/049526.html + $whatarg = "" if ! defined $whatarg; + # set up a tmp dir # On W32 it seems that File::Temp creates restrictive permissions (ok) # that are copied over with the files created inside it (not ok). @@ -1478,7 +1483,7 @@ Options: --force (does nothing, exists for compatibility) --test (does nothing, exists for compatibility) -Commands: +Commands (exactly one must be specified): --all recreate all format files --missing create all missing format files --byengine ENGINE (re)create formats built with ENGINE -- cgit v1.2.3