diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2015-06-19 21:49:05 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2015-06-19 21:49:09 +0200 |
commit | 4a4d051f31809d47dbb382184f8bdbd6d71560ce (patch) | |
tree | d753748ec9da5ff0b6f13a65185d40110509898e /src/luaotfload-tool.lua | |
parent | 4252a41ffc8e6851cd634f3ae38b4ed38b52ff80 (diff) | |
download | luaotfload-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-x | src/luaotfload-tool.lua | 12 |
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 |