diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-10-08 22:03:39 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-10-08 22:03:39 +0200 |
commit | 4855f5a841edc1db318818c89f30d12227f4740f (patch) | |
tree | 7363859424627c919f54251ac62e75f12909eb06 /tex/context/base/mkiv/file-lib.lua | |
parent | f3157085de19cbc6cee3ade6d9e4e705675196a3 (diff) | |
download | context-4855f5a841edc1db318818c89f30d12227f4740f.tar.gz |
2019-10-08 19:24:00
Diffstat (limited to 'tex/context/base/mkiv/file-lib.lua')
-rw-r--r-- | tex/context/base/mkiv/file-lib.lua | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/tex/context/base/mkiv/file-lib.lua b/tex/context/base/mkiv/file-lib.lua index 62cf938ba..8ef1a48d3 100644 --- a/tex/context/base/mkiv/file-lib.lua +++ b/tex/context/base/mkiv/file-lib.lua @@ -61,13 +61,18 @@ function resolvers.uselibrary(specification) -- todo: reporter if not foundname then -- pattern based search for i=1,#patterns do - local wanted = format(patterns[i],barename) - foundname = found(wanted) - if trace_libraries then - report_library("checking %a as %a: %s",filename,wanted,foundname or "not found") - end - if foundname then - break + local pattern = patterns[i] + if pattern and pattern ~= "" then + local wanted = format(pattern,barename) + foundname = found(wanted) + if trace_libraries then + report_library("checking %a as %a: %s",filename,wanted,foundname or "not found") + end + if foundname then + break + end + else + -- can be a bogus path (coming from a test) end end end |