summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2011-06-22 15:38:16 +0000
committerTaco Hoekwater <taco@elvenkind.com>2011-06-22 15:38:16 +0000
commitddc86c5d4d6c0c79ef03b1ed2f43aee8a955687e (patch)
tree13512ab4103a2619fc0e7ed3a8505e6707daa337 /Master/texmf-dist/tex
parenteaf7c239e056c7048ed172278c5040d5925010d4 (diff)
yet another mtxrun fix for runtime-discovered files (it should really be done now)
git-svn-id: svn://tug.org/texlive/trunk@23090 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/context/base/data-res.lua29
1 files changed, 13 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/context/base/data-res.lua b/Master/texmf-dist/tex/context/base/data-res.lua
index cac283092c2..3422564139c 100644
--- a/Master/texmf-dist/tex/context/base/data-res.lua
+++ b/Master/texmf-dist/tex/context/base/data-res.lua
@@ -1051,7 +1051,7 @@ local function collect_instance_files(filename,askedformat,allresults) -- todo :
end
end
end
- if not done and doscan then
+ if not done then
-- check if on disk / unchecked / does not work at all / also zips
-- TH perhaps it did not work because of missing resolvers.resolve()
-- and resolvers.scanfiles() calls ...
@@ -1062,22 +1062,19 @@ local function collect_instance_files(filename,askedformat,allresults) -- todo :
if not find(pname,"%*") then
local ppname = gsub(pname,"/+$","")
if can_be_dir(ppname) then
- local files = resolvers.scanfiles(ppname)
- if files then
- for k=1,#wantedfiles do
- local w = wantedfiles[k]
- local subpath = files[w]
- if subpath then
- local fname = filejoin(ppname,subpath,w)
- if isreadable(fname) then
- if trace_detail then
- report_resolving("found '%s' by scanning",fname)
- end
- result[#result+1] = fname
- done = true
- if not allresults then break end
- end
+ local files = {}
+ if doscan then files = resolvers.scanfiles(ppname) end
+ for k=1,#wantedfiles do
+ local w = wantedfiles[k]
+ local subpath = files[w] or ''
+ local fname = filejoin(ppname,subpath,w)
+ if isreadable(fname) then
+ if trace_detail then
+ report_resolving("found '%s' by scanning",fname)
end
+ result[#result+1] = fname
+ done = true
+ if not allresults then break end
end
end
else