diff options
author | Karl Berry <karl@freefriends.org> | 2011-01-23 01:09:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-01-23 01:09:53 +0000 |
commit | 5e945c5a13bec1ceced8d5eda19d8e0807a969cd (patch) | |
tree | 438cc6391bd700e9a795405cd9f536abd3482b6e /Master/texmf-dist/tex/luatex/lualibs | |
parent | ff146fb7722720da2c8f7de56ccc44e5682c7bc9 (diff) |
lualibs 0.96 (21jan11)
git-svn-id: svn://tug.org/texlive/trunk@21149 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/lualibs')
-rw-r--r-- | Master/texmf-dist/tex/luatex/lualibs/lualibs-dir.lua | 16 | ||||
-rw-r--r-- | Master/texmf-dist/tex/luatex/lualibs/lualibs.lua | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/luatex/lualibs/lualibs-dir.lua b/Master/texmf-dist/tex/luatex/lualibs/lualibs-dir.lua index 2643f538b94..1b9bcbc9bf5 100644 --- a/Master/texmf-dist/tex/luatex/lualibs/lualibs-dir.lua +++ b/Master/texmf-dist/tex/luatex/lualibs/lualibs-dir.lua @@ -26,15 +26,15 @@ local attributes = lfs.attributes local walkdir = lfs.dir local function glob_pattern(path,patt,recurse,action) - local ok, scanner + local ok, scanner, dirobj if path == "/" then - ok, scanner = xpcall(function() return walkdir(path..".") end, function() end) -- kepler safe + ok, scanner, dirobj = xpcall(function() return walkdir(path..".") end, function() end) -- kepler safe else - ok, scanner = xpcall(function() return walkdir(path) end, function() end) -- kepler safe + ok, scanner, dirobj = xpcall(function() return walkdir(path) end, function() end) -- kepler safe end if ok and type(scanner) == "function" then if not find(path,"/$") then path = path .. '/' end - for name in scanner do + for name in scanner, dirobj do local full = path .. name local mode = attributes(full,'mode') if mode == 'file' then @@ -51,16 +51,16 @@ end dir.glob_pattern = glob_pattern local function collect_pattern(path,patt,recurse,result) - local ok, scanner + local ok, scanner, dirobj result = result or { } if path == "/" then - ok, scanner = xpcall(function() return walkdir(path..".") end, function() end) -- kepler safe + ok, scanner, dirobj = xpcall(function() return walkdir(path..".") end, function() end) -- kepler safe else - ok, scanner = xpcall(function() return walkdir(path) end, function() end) -- kepler safe + ok, scanner, dirobj = xpcall(function() return walkdir(path) end, function() end) -- kepler safe end if ok and type(scanner) == "function" then if not find(path,"/$") then path = path .. '/' end - for name in scanner do + for name in scanner, dirobj do local full = path .. name local attr = attributes(full) local mode = attr.mode diff --git a/Master/texmf-dist/tex/luatex/lualibs/lualibs.lua b/Master/texmf-dist/tex/luatex/lualibs/lualibs.lua index 15915bc7a1d..9c11c1d4a8a 100644 --- a/Master/texmf-dist/tex/luatex/lualibs/lualibs.lua +++ b/Master/texmf-dist/tex/luatex/lualibs/lualibs.lua @@ -18,8 +18,8 @@ module('lualibs', package.seeall) local lualibs_module = { name = "lualibs", - version = 0.95, - date = "2010/06/28", + version = 0.96, + date = "2011/01/20", description = "Lua additional functions.", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL & Elie Roux", copyright = "PRAGMA ADE / ConTeXt Development Team", |