summaryrefslogtreecommitdiff
path: root/src/luaotfload-tool.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-06-19 21:49:05 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2015-06-19 21:49:09 +0200
commit4a4d051f31809d47dbb382184f8bdbd6d71560ce (patch)
treed753748ec9da5ff0b6f13a65185d40110509898e /src/luaotfload-tool.lua
parent4252a41ffc8e6851cd634f3ae38b4ed38b52ff80 (diff)
downloadluaotfload-4a4d051f31809d47dbb382184f8bdbd6d71560ce.tar.gz
[db,tool] prevent database rebuild when querying version info
Reported by /u/ThomasFehige on Github: https://github.com/lualatex/luaotfload/issues/275#issuecomment-113515484
Diffstat (limited to 'src/luaotfload-tool.lua')
-rwxr-xr-xsrc/luaotfload-tool.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/luaotfload-tool.lua b/src/luaotfload-tool.lua
index 36c23bd..e240e4c 100755
--- a/src/luaotfload-tool.lua
+++ b/src/luaotfload-tool.lua
@@ -288,10 +288,14 @@ local version_msg = function ( )
local var = uname_vars[i]
out (" + %8s: %s", var, uname[var])
end
- out ("Index: version=%q created=%q modified=%q",
- config.luaotfload.status.notes.revision,
- meta.created or "ages ago",
- meta.modified or "ages ago")
+ if meta == false then
+ out("No database metadata available.")
+ else
+ out ("Index: version=%q created=%q modified=%q",
+ config.luaotfload.status.notes.revision,
+ meta.created or "ages ago",
+ meta.modified or "ages ago")
+ end
out ""
end