summaryrefslogtreecommitdiff
path: root/src/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-07-26 13:33:58 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2014-07-26 13:36:22 +0200
commit9ddcebcb6ea75c3c22187e11c2c1076a86f1af8b (patch)
treebce51a70864929f1e3de6080158a68a46b94fc6d /src/luaotfload-database.lua
parent04dc6c632f7bc85b48d12af695392fb5e4d0faef (diff)
downloadluaotfload-9ddcebcb6ea75c3c22187e11c2c1076a86f1af8b.tar.gz
[db,tool,conf] fix thinko in db update suppression
The ``db.update-live`` option caused all db updates, even forced ones to fail due to a missing check for the kind of run.
Diffstat (limited to 'src/luaotfload-database.lua')
-rw-r--r--src/luaotfload-database.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index 4c5522e..099c256 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -3091,9 +3091,9 @@ end
update_names = function (currentnames, force, dry_run)
local targetnames
- if config.luaotfload.db.update_live == false then
- report ("info", 2, "db",
- "Skipping database update.")
+ local conf = config.luaotfload
+ if conf.run.live ~= false and conf.db.update_live == false then
+ report ("info", 2, "db", "Skipping database update.")
--- skip all db updates
return currentnames or name_index
end