[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Only rename latex.fmt when it exists (55943508)

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Jul 21 11:17:23 CEST 2019


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/559435086b65c18d3f661372b6b96152d1c2b3eb

>---------------------------------------------------------------

commit 559435086b65c18d3f661372b6b96152d1c2b3eb
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Jul 21 10:15:57 2019 +0100

    Only rename latex.fmt when it exists
    
    For pdfLaTeX, the .ini file name already sorts this.


>---------------------------------------------------------------

559435086b65c18d3f661372b6b96152d1c2b3eb
 base/build.lua | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/base/build.lua b/base/build.lua
index 86e80ecf..7f2c94c6 100644
--- a/base/build.lua
+++ b/base/build.lua
@@ -134,7 +134,9 @@ function format ()
     if errorlevel ~=0 then
       return errorlevel
     end
-    ren (unpackdir, "latex.fmt", fmtname)
+    if exist(unpackdir,"latex.fmt")
+      ren (unpackdir, "latex.fmt", fmtname)
+    end
     -- As format building is added in as an 'extra', the normal
     -- copy mechanism (checkfiles) will fail as things get cleaned up
     -- inside bundleunpack(): get around that using a manual copy





More information about the latex3-commits mailing list