diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-03-10 21:46:47 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-03-10 21:46:47 +0200 |
commit | e4d4bfa8ff3a6884b9d2fb8d93ab6a309af5da64 (patch) | |
tree | f251a21d41195570147fc764438f46fdb19698ff /mkluatexfontdb.lua | |
parent | 2a19de409f271cac9b06486e4cb4736251828c7e (diff) | |
download | luaotfload-e4d4bfa8ff3a6884b9d2fb8d93ab6a309af5da64.tar.gz |
Fix loading existing databse
We were always generating a new one.
Diffstat (limited to 'mkluatexfontdb.lua')
-rw-r--r-- | mkluatexfontdb.lua | 4 |
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 |