From 2a31ed63dccd4eb59c58f2b30c7b5170fe246e24 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 2 Aug 2013 21:41:58 +0200 Subject: [db] fix missing write after auto-update fixes issues like this one: http://tex.stackexchange.com/q/126467/14066 --- luaotfload-database.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/luaotfload-database.lua b/luaotfload-database.lua index ac2d0db..ab0d32c 100644 --- a/luaotfload-database.lua +++ b/luaotfload-database.lua @@ -400,7 +400,13 @@ load_names = function (dry_run) nms_version, db_version) if not fonts_reloaded then report("both", 0, "db", [[Force rebuild]]) - return update_names({ }, true, false) + data = update_names({ }, true, false) + local success = save_names (data) + if not success then + report ("both", 0, "db", + "Database creation unsuccessful.") + end + return data end end else -- cgit v1.2.3