From 8e504aea583057b70c34e71cd24af1f8cc648fa1 Mon Sep 17 00:00:00 2001 From: eroux Date: Mon, 1 Mar 2010 11:48:31 +0100 Subject: Now having version in status table too Also stronger checks on status --- mkluatexfontdb.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mkluatexfontdb.lua') diff --git a/mkluatexfontdb.lua b/mkluatexfontdb.lua index 7481252..66fc231 100644 --- a/mkluatexfontdb.lua +++ b/mkluatexfontdb.lua @@ -148,7 +148,7 @@ do_run_fc_cache(run_fc_cache) -- the status table is containing correspondances between absolute path and last modification -- timestamp, it's uses to save time during update, by not reparsing unchanged fonts. -local status = {} +local status = nil local status_file = mkluatexfontdb.directory .. '/' .. "otfl-names-status.lua" if lfs.isfile(status_file) then status = dofile(status_file) @@ -178,7 +178,7 @@ local function generate(force) else fontnames = {} end - fontnames = names.update(fontnames, force, status) + fontnames, status = names.update(fontnames, force, status) log("%s fonts in %s families in the database", #fontnames.mappings, #table.keys(fontnames.families)) io.savedata(savepath, table.serialize(fontnames, true)) -- cgit v1.2.3