summaryrefslogtreecommitdiff
path: root/luaotfload-diagnostics.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-12-13 02:48:31 -0800
committerPhilipp Gesang <phg42.2a@gmail.com>2013-12-13 02:48:31 -0800
commitaa9c845763490b53be510d9ca9bc2fdab9d0016d (patch)
tree81a30039518cfa75f069a88344982ae85675018d /luaotfload-diagnostics.lua
parent3dc8dc735c20093b4a2cfafe62bc591e76a3e0ca (diff)
parent41b172923704902bbe23ec9372df2eb097c25d87 (diff)
downloadluaotfload-aa9c845763490b53be510d9ca9bc2fdab9d0016d.tar.gz
Merge pull request #154 from phi-gamma/master
fixes, mainly to diagnostics
Diffstat (limited to 'luaotfload-diagnostics.lua')
-rw-r--r--luaotfload-diagnostics.lua14
1 files changed, 8 insertions, 6 deletions
diff --git a/luaotfload-diagnostics.lua b/luaotfload-diagnostics.lua
index f191913..68ed18c 100644
--- a/luaotfload-diagnostics.lua
+++ b/luaotfload-diagnostics.lua
@@ -25,6 +25,8 @@ local lfsreadlink = lfs.readlink
local md5 = require "md5"
local md5sumhexa = md5.sumhexa
+local ioopen = io.open
+
local osgetenv = os.getenv
local osname = os.name
local osremove = os.remove
@@ -54,10 +56,10 @@ end
local check_index = function (errcnt)
out "================= font names =================="
- local name_index = names.data()
+ local namedata = names.data()
- if not name_index then
- name_index = names.load ()
+ if not namedata then
+ namedata = names.load ()
end
local mappings = namedata.mappings
@@ -67,9 +69,9 @@ local check_index = function (errcnt)
return errcnt + 1
end
- out ("Database version: %.3f.", names.version)
+ out ("Database version: %.3f.", namedata.meta.version)
out ("Font formats indexed: %s.",
- tableconcat (namedata.formats, ", "))
+ tableconcat (namedata.meta.formats, ", "))
out ("%d font files indexed.", #mappings)
local by_format = { }
@@ -241,7 +243,7 @@ local path = names.path
local desired_permissions = {
{ "d", {"r","w"}, function () return caches.getwritablepath () end },
{ "d", {"r","w"}, path.globals.prefix },
- { "f", {"r","w"}, path.index.lua },
+ { "f", {"r","w"}, path.index.lua .. ".gz" },
{ "f", {"r","w"}, path.index.luc },
{ "f", {"r","w"}, path.lookups.lua },
{ "f", {"r","w"}, path.lookups.luc },