summaryrefslogtreecommitdiff
path: root/luaotfload-tool.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-11 00:28:52 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-11 00:28:52 -0700
commitfb82dbc637698c1d50bb51a9a241e96a83ef27dc (patch)
treebce65e21f399f5042f85db5e26715c233233237c /luaotfload-tool.lua
parent893cef29de78e44751d3e4c5603090c5c6c5108e (diff)
parent77a03856cd603666bd3ab1edc32e68df448c914c (diff)
downloadluaotfload-fb82dbc637698c1d50bb51a9a241e96a83ef27dc.tar.gz
Merge pull request #60 from phi-gamma/master
writing the names and lookups files now always returns a bool
Diffstat (limited to 'luaotfload-tool.lua')
-rwxr-xr-xluaotfload-tool.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua
index 2c525d9..93d6acf 100755
--- a/luaotfload-tool.lua
+++ b/luaotfload-tool.lua
@@ -259,6 +259,7 @@ actions.loglevel = function (job)
logs.set_loglevel(job.log_level)
logs.names_report("info", 3, "util",
"setting log level", "%d", job.log_level)
+ logs.names_report("log", 0, "util", "lua=%s", _VERSION)
return true, true
end
@@ -277,8 +278,8 @@ actions.generate = function (job)
fontnames = names.update(fontnames, job.force_reload)
logs.names_report("info", 2, "db",
"Fonts in the database: %i", #fontnames.mappings)
- savedname = names.save(fontnames)
- if savedname then --- FIXME have names.save return bool
+ local success = names.save(fontnames)
+ if success then
return true, true
end
return false, false
@@ -287,9 +288,9 @@ end
actions.flush = function (job)
local success, lookups = names.flush_cache()
if success then
- local savedname = names.save_lookups()
- logs.names_report("info", 2, "cache", "Cache emptied")
- if savedname then
+ local success = names.save_lookups()
+ if success then
+ logs.names_report("info", 2, "cache", "Cache emptied")
return true, true
end
end