[latex3-commits] [git/LaTeX3-latex3-l3build] master: local `fill` and `dir` (002a934)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Feb 11 13:28:26 CET 2021
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/002a934a339b393be17eb921d2b2d97fa3f16624
>---------------------------------------------------------------
commit 002a934a339b393be17eb921d2b2d97fa3f16624
Author: LAURENS Jérôme <jerome.laurens at u-bourgogne.fr>
Date: Wed Feb 10 23:02:44 2021 +0100
local `fill` and `dir`
>---------------------------------------------------------------
002a934a339b393be17eb921d2b2d97fa3f16624
l3build-file-functions.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/l3build-file-functions.lua b/l3build-file-functions.lua
index 5679134..c80a761 100644
--- a/l3build-file-functions.lua
+++ b/l3build-file-functions.lua
@@ -303,7 +303,7 @@ function tree(path, glob)
local dirs = {["."] = cropdots(path)}
for pattern, criterion in gmatch(cropdots(glob), "([^/]+)(/?)") do
local criterion = criterion == "/" and is_dir or always_true
- function fill(path, dir, table)
+ local function fill(path, dir, table)
for _, file in ipairs(filelist(dir, pattern)) do
local fullpath = path .. "/" .. file
if file ~= "." and file ~= ".." and
@@ -319,7 +319,7 @@ function tree(path, glob)
local newdirs = {}
if pattern == "**" then
while true do
- path, dir = next(dirs)
+ local path, dir = next(dirs)
if not path then
break
end
More information about the latex3-commits
mailing list.