[latex3-commits] [git/LaTeX3-latex3-l3build] master: Another local function (868ce4a)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Mar 21 11:16:13 CET 2018


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

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

commit 868ce4aea306349411334f02c737e37196f915f3
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Mar 21 10:16:13 2018 +0000

    Another local function


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

868ce4aea306349411334f02c737e37196f915f3
 l3build-check.lua |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/l3build-check.lua b/l3build-check.lua
index 2371164..0d52c79 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -47,6 +47,7 @@ local utf8_char        = unicode.utf8.char
 
 local exit             = os.exit
 local execute          = os.execute
+local remove           = os.remove
 
 --
 -- Auxiliary functions which are used by more than one main function
@@ -584,7 +585,7 @@ function compare_pdf(name, engine)
       .. " " .. pdffile .. " > " .. cmpfile
   )
   if errorlevel == 0 then
-    os.remove(cmpfile)
+    remove(cmpfile)
   end
   return errorlevel
 end
@@ -614,7 +615,7 @@ function compare_tlg(name, engine)
   errorlevel = execute(os_diffexe .. " "
     .. normalize_path(tlgfile .. " " .. logfile .. " > " .. difffile))
   if errorlevel == 0 then
-    os.remove(difffile)
+    remove(difffile)
   end
   return errorlevel
 end





More information about the latex3-commits mailing list