diff options
author | Karl Berry <karl@freefriends.org> | 2023-11-01 17:28:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-11-01 17:28:01 +0000 |
commit | 9fa7c623c8c2840533d20f699c7f3a79079d27cc (patch) | |
tree | 5e3b9dd8699bae2fabf77dcb234f2179c3904eb4 /Master/texmf-dist/scripts | |
parent | 35487018ea98b0c12d2720b62cc742caa7c8feb5 (diff) |
(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
Diffstat (limited to 'Master/texmf-dist/scripts')
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/fmtutil.pl | 7 |
1 files changed, 6 insertions, 1 deletions
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 |