[latex3-commits] [git/LaTeX3-latex3-l3build] master: Defensive line (e6c3f3b)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Jul 18 14:52:30 CEST 2019


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/e6c3f3bbc80f8d0d3ee76c1eb99db9f14fb20a33

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

commit e6c3f3bbc80f8d0d3ee76c1eb99db9f14fb20a33
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Jul 18 13:52:30 2019 +0100

    Defensive line


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

e6c3f3bbc80f8d0d3ee76c1eb99db9f14fb20a33
 l3build-check.lua | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/l3build-check.lua b/l3build-check.lua
index 9fcf988..6cd9ac1 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -772,7 +772,10 @@ function runtest(name, engine, hide, ext, pdfmode, breakout)
            ext ~= tlgext and
            ext ~= lveext and
            ext ~= logext then
-           ren(testdir, file, gsub(file, "(%.[^.]+)$", "." .. engine .. "%1"))
+           local newname = gsub(file,"(%.[^.]+)$","." .. engine .. "%1")
+           if not fileexists(testdir,newname) then
+             ren(testdir,file,newname)
+           end
         end
       end
     end





More information about the latex3-commits mailing list