diff options
Diffstat (limited to 'Master/texmf-dist/scripts')
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/fmtutil.pl | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Master/texmf-dist/scripts/texlive/fmtutil.pl b/Master/texmf-dist/scripts/texlive/fmtutil.pl index 293208c1ef2..606eb34f854 100755 --- a/Master/texmf-dist/scripts/texlive/fmtutil.pl +++ b/Master/texmf-dist/scripts/texlive/fmtutil.pl @@ -436,9 +436,12 @@ sub callback_build_formats { } } - # if the user asked to rebuild something, but we did nothing, report. - if ($err + $suc == 0) { - print_info("did not find entry for $what=$whatarg, skipped\n"); + # if the user asked to rebuild something, but we did nothing, report + # unless we tried to rebuild only missing formats. + if ($what ne "missing") { + if ($err + $suc == 0) { + print_info("did not find entry for $what=$whatarg, skipped\n"); + } } my $stdo = ($mktexfmtMode ? \*STDERR : \*STDOUT); for (@deferred_stdout) { print $stdo $_; } @@ -474,8 +477,8 @@ sub select_and_rebuild_format { # we just identify 'all', 'refresh', 'missing' # I don't see much point in keeping all of them $doit = 1 if ($what eq 'all'); - $doit = 1 if ($what eq 'refresh'); - $doit = 1 if ($what eq 'missing'); + $doit = 1 if ($what eq 'refresh' && -r "$destdir/$fmtfile"); + $doit = 1 if ($what eq 'missing' && ! -r "$destdir/$fmtfile"); $doit = 1 if ($what eq 'byengine' && $eng eq $whatarg); $doit = 1 if ($what eq 'byfmt' && $fmt eq $whatarg); # TODO |