diff options
author | Norbert Preining <norbert@preining.info> | 2021-03-25 08:22:52 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-04-12 09:59:22 +0900 |
commit | 37b9b98430a174842d473ec0ca177c5137051e5b (patch) | |
tree | bd3530d51bdebc47a8c18c8d73ed985fd3f0f0ec | |
parent | 33ef879770f94a03ade092719a9049e8587535ae (diff) |
tlmgr.pl format rebuilding: check and warn for create_formats option
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/tlmgr.pl | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl index 0e114485086..1f1ffc91f6d 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -963,6 +963,9 @@ sub handle_execute_actions { TeXLive::TLUtils::create_fmtutil($localtlpdb, "$TEXMFDIST/web2c/fmtutil.cnf"); } + if (!$opt_fmt) { + info("formats not rebuilt per user option (create_formats=0)\n"); + } if ($opt_fmt && !$::regenerate_all_formats) { # first regenerate all formats --byengine for my $e (keys %updated_engines) { @@ -994,20 +997,18 @@ sub handle_execute_actions { # Use full path for external command, except on Windows. $lang = "$TEXMFSYSVAR/tex/generic/config/$lang"; } - if ($localtlpdb->option("create_formats") - && !$::regenerate_all_formats) { + if ($opt_fmt && !$::regenerate_all_formats) { $errors += do_cmd_and_check ("$invoke_fmtutil --byhyphen \"$lang\""); } } } - } - # - if ($::regenerate_all_formats) { - info("Regenerating all formats, this may take some time ..."); - $errors += do_cmd_and_check("$invoke_fmtutil --all"); - info("done\n"); - $::regenerate_all_formats = 0; + if ($opt_fmt && $::regenerate_all_formats) { + info("Regenerating all formats, this may take some time ..."); + $errors += do_cmd_and_check("$invoke_fmtutil --all"); + info("done\n"); + $::regenerate_all_formats = 0; + } } # undefine the global var, otherwise in GUI mode the actions |