From 04f06993d2d9981267e803eaa7dd034a3d57f9eb Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 3 Aug 2013 22:50:13 +0200 Subject: [tool] interpret file lookup result correctly --- luaotfload-tool.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua index e8513be..e95bba4 100755 --- a/luaotfload-tool.lua +++ b/luaotfload-tool.lua @@ -823,13 +823,10 @@ actions.query = function (job) then foundname, subfont = names.resolve (nil, nil, tmpspec) if foundname then - foundname = names.crude_file_lookup (foundname) - if foundname then - success = true - end + foundname, _, success = names.crude_file_lookup (foundname) end elseif tmpspec.lookup == "file" then - foundname, subfont, success = + foundname, _, success = names.crude_file_lookup (tmpspec.name) end -- cgit v1.2.3