diff options
author | Norbert Preining <preining@logic.at> | 2021-04-12 01:00:14 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2021-04-12 01:00:14 +0000 |
commit | 36fef496a1ab5e10fe21ce399e5f9dbcf5845940 (patch) | |
tree | bd3530d51bdebc47a8c18c8d73ed985fd3f0f0ec /Master | |
parent | 33ef879770f94a03ade092719a9049e8587535ae (diff) |
tlmgr.pl format rebuilding: check and warn for create_formats option
git-svn-id: svn://tug.org/texlive/trunk@58846 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-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 |