[latex3-commits] [git/l3build] master: Revert "A couple of efficiencies" (c2b2f9b)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Nov 28 21:08:40 CET 2017
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/c2b2f9b9759f9e9452848f382dc22f973bddff38
>---------------------------------------------------------------
commit c2b2f9b9759f9e9452848f382dc22f973bddff38
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Nov 28 20:08:40 2017 +0000
Revert "A couple of efficiencies"
This reverts commit 1db1d5c0ad9f467d51f099da908cf4c4b10a9b4c.
>---------------------------------------------------------------
c2b2f9b9759f9e9452848f382dc22f973bddff38
l3build.lua | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/l3build.lua b/l3build.lua
index 28d2d08..2e537be 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -682,7 +682,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
@@ -692,8 +692,8 @@ function tree(path, glob)
local fullpath = path .. "/" .. file
if file ~= "." and file ~= ".." and
fullpath ~= builddir and
- (sub(pattern, 1, 1) == "."
- or sub(file, 1, 1) ~= ".")
+ (string.sub(pattern, 1, 1) == "."
+ or string.sub(file, 1, 1) ~= ".")
then
local fulldir = dir .. "/" .. file
if critereon(fulldir) then
More information about the latex3-commits
mailing list