summaryrefslogtreecommitdiff
path: root/mkluatexfontdb.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mkluatexfontdb.lua')
-rw-r--r--mkluatexfontdb.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkluatexfontdb.lua b/mkluatexfontdb.lua
index 5c04691..ef39a4e 100644
--- a/mkluatexfontdb.lua
+++ b/mkluatexfontdb.lua
@@ -176,8 +176,8 @@ local function generate(force, purge)
end
fh:close()
local fontnames
- if kpse.find_file(names.basename) and not force_reload then
- fontnames = dofile(kpse.find_file(names.basename))
+ if not force_reload and file.isreadable(savepath) then
+ fontnames = dofile(savepath)
else
fontnames = nil
end