texlive[58846] Master/texmf-dist/scripts/texlive/tlmgr.pl: tlmgr.pl

commits+preining at tug.org commits+preining at tug.org
Mon Apr 12 03:00:14 CEST 2021


Revision: 58846
          http://tug.org/svn/texlive?view=revision&revision=58846
Author:   preining
Date:     2021-04-12 03:00:14 +0200 (Mon, 12 Apr 2021)
Log Message:
-----------
tlmgr.pl format rebuilding: check and warn for create_formats option

Modified Paths:
--------------
    trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl

Modified: trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl	2021-04-11 23:48:57 UTC (rev 58845)
+++ trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl	2021-04-12 01:00:14 UTC (rev 58846)
@@ -963,6 +963,9 @@
       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 @@
           # 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



More information about the tex-live-commits mailing list.