summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-03-10 21:46:47 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-03-10 21:46:47 +0200
commite4d4bfa8ff3a6884b9d2fb8d93ab6a309af5da64 (patch)
treef251a21d41195570147fc764438f46fdb19698ff
parent2a19de409f271cac9b06486e4cb4736251828c7e (diff)
downloadluaotfload-e4d4bfa8ff3a6884b9d2fb8d93ab6a309af5da64.tar.gz
Fix loading existing databse
We were always generating a new one.
-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