1 |
aballier 11/05/18 14:27:41 |
2 |
|
3 |
Added: luatools.patch |
4 |
Log: |
5 |
fix luatools with luatex 0.65, based on https://github.com/mpg/lualibs/commit/ebac0e8e8d5d57eec5dfd3a3217e7e2fc3fe9bbd#lualibs-dir.lua |
6 |
|
7 |
(Portage version: 2.2.0_alpha34/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-texlive/texlive-context/files/luatools.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-texlive/texlive-context/files/luatools.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-texlive/texlive-context/files/luatools.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: luatools.patch |
16 |
=================================================================== |
17 |
--- texmf-dist/scripts/context/stubs/unix/luatools 2010-06-11 01:27:28.000000000 -0400 |
18 |
+++ texmf-dist/scripts/context/stubs/unix/luatools.new 2011-05-18 10:21:42.575032665 -0400 |
19 |
@@ -2723,15 +2723,15 @@ |
20 |
local walkdir = lfs.dir |
21 |
|
22 |
local function glob_pattern(path,patt,recurse,action) |
23 |
- local ok, scanner |
24 |
+ local ok, scanner, dirobj |
25 |
if path == "/" then |
26 |
- ok, scanner = xpcall(function() return walkdir(path..".") end, function() end) -- kepler safe |
27 |
+ ok, scanner, dirobj = xpcall(function() return walkdir(path..".") end, function() end) -- kepler safe |
28 |
else |
29 |
- ok, scanner = xpcall(function() return walkdir(path) end, function() end) -- kepler safe |
30 |
+ ok, scanner, dirobj = xpcall(function() return walkdir(path) end, function() end) -- kepler safe |
31 |
end |
32 |
if ok and type(scanner) == "function" then |
33 |
if not find(path,"/$") then path = path .. '/' end |
34 |
- for name in scanner do |
35 |
+ for name in scanner, dirobj do |
36 |
local full = path .. name |
37 |
local mode = attributes(full,'mode') |
38 |
if mode == 'file' then |
39 |
@@ -2748,16 +2748,16 @@ |
40 |
dir.glob_pattern = glob_pattern |
41 |
|
42 |
local function collect_pattern(path,patt,recurse,result) |
43 |
- local ok, scanner |
44 |
+ local ok, scanner, dirobj |
45 |
result = result or { } |
46 |
if path == "/" then |
47 |
- ok, scanner = xpcall(function() return walkdir(path..".") end, function() end) -- kepler safe |
48 |
+ ok, scanner, dirobj = xpcall(function() return walkdir(path..".") end, function() end) -- kepler safe |
49 |
else |
50 |
- ok, scanner = xpcall(function() return walkdir(path) end, function() end) -- kepler safe |
51 |
+ ok, scanner, dirobj = xpcall(function() return walkdir(path) end, function() end) -- kepler safe |
52 |
end |
53 |
if ok and type(scanner) == "function" then |
54 |
if not find(path,"/$") then path = path .. '/' end |
55 |
- for name in scanner do |
56 |
+ for name in scanner, dirobj do |
57 |
local full = path .. name |
58 |
local attr = attributes(full) |
59 |
local mode = attr.mode |