[latex3-commits] [git/l3build] master: A couple of efficiencies (4dda7e5)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Nov 29 12:04:30 CET 2017


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

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

commit 4dda7e54571c681041d42183ec6daf2f3648ce50
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Nov 29 11:04:30 2017 +0000

    A couple of efficiencies


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

4dda7e54571c681041d42183ec6daf2f3648ce50
 l3build.lua |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/l3build.lua b/l3build.lua
index 60af79c..a978402 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -681,7 +681,7 @@ function tree(path, glob)
     return true
   end
   function is_dir(file)
-    return lfs.attributes(file)["mode"] == "directory"
+    return lfs_attributes(file)["mode"] == "directory"
   end
   local dirs = {["."]=cropdots(path)}
   for pattern, critereon in gmatch(cropdots(glob), "([^/]+)(/?)") do
@@ -691,8 +691,8 @@ function tree(path, glob)
         local fullpath = path .. "/" .. file
         if file ~= "." and file ~= ".." and
           fullpath ~= maindir .. "/build" and
-          (string.sub(pattern, 1, 1) == "."
-            or string.sub(file, 1, 1) ~= ".")
+          (sub(pattern, 1, 1) == "."
+            or sub(file, 1, 1) ~= ".")
         then
           local fulldir = dir .. "/" .. file
           if critereon(fulldir) then





More information about the latex3-commits mailing list