diff options
author | Marius <mariausol@gmail.com> | 2011-02-04 20:40:13 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-02-04 20:40:13 +0200 |
commit | bb66aa068077405ae304ab6defc770b2b3222b9f (patch) | |
tree | c5adaabc55d3fecb2ad6cd51514d61a4a4da0655 /tex/context/base/data-res.lua | |
parent | 39db6b1351a394a7510d41c1df0a16e1b04ed8b8 (diff) | |
download | context-bb66aa068077405ae304ab6defc770b2b3222b9f.tar.gz |
beta 2011.02.04 19:31
Diffstat (limited to 'tex/context/base/data-res.lua')
-rw-r--r-- | tex/context/base/data-res.lua | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/tex/context/base/data-res.lua b/tex/context/base/data-res.lua index a53816c3f..e9dbc5e67 100644 --- a/tex/context/base/data-res.lua +++ b/tex/context/base/data-res.lua @@ -1408,6 +1408,7 @@ end local function findgivenfiles(filename,allresults) local bname, result = filebasename(filename), { } local hashes = instance.hashes + local noffound = 0 for k=1,#hashes do local hash = hashes[k] local files = instance.files[hash.name] or { } @@ -1422,13 +1423,21 @@ local function findgivenfiles(filename,allresults) end if blist then if type(blist) == 'string' then - result[#result+1] = methodhandler('concatinators',hash.type,hash.name,blist,bname) or "" - if not allresults then break end + local found = methodhandler('concatinators',hash.type,hash.name,blist,bname) or "" + if found ~= "" then + noffound = noffound + 1 + result[noffound] = resolvers.resolve(found) + if not allresults then break end + end else for kk=1,#blist do local vv = blist[kk] - result[#result+1] = methodhandler('concatinators',hash.type,hash.name,vv,bname) or "" - if not allresults then break end + local found = methodhandler('concatinators',hash.type,hash.name,vv,bname) or "" + if found ~= "" then + noffound = noffound + 1 + result[noffound] = resolvers.resolve(found) + if not allresults then break end + end end end end |