From 36fef496a1ab5e10fe21ce399e5f9dbcf5845940 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 12 Apr 2021 01:00:14 +0000 Subject: 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 --- Master/texmf-dist/scripts/texlive/tlmgr.pl | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'Master/texmf-dist/scripts') 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 -- cgit v1.2.3