summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-08-01 15:48:01 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-08-01 15:48:01 +0200
commit29ed9fa93ab3877b5fcf1e49e99269e3a67334ac (patch)
treee0e6867053f9f72f7c026c3192d5aaee49215f3c /luaotfload-database.lua
parent709a43ce2fd471502f587d99f3ca7527a3e76672 (diff)
downloadluaotfload-29ed9fa93ab3877b5fcf1e49e99269e3a67334ac.tar.gz
[db] strip useless parameter from fontnames_init()
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r--luaotfload-database.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index 5b22892..2267b6c 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -313,7 +313,7 @@ mtx-fonts has in names.tma:
--doc]]--
-local fontnames_init = function (keep_cache) --- returns dbobj
+local fontnames_init = function () --- returns dbobj
return {
mappings = { },
status = { },
@@ -404,7 +404,7 @@ load_names = function (dry_run)
[[Font names database not found, generating new one.]])
report("both", 0, "db",
[[This can take several minutes; please be patient.]])
- data = update_names(fontnames_init(false), nil, dry_run)
+ data = update_names(fontnames_init(), nil, dry_run)
local success = save_names(data)
if not success then
report("both", 0, "db", "Database creation unsuccessful.")
@@ -2178,7 +2178,7 @@ update_names = function (fontnames, force, dry_run)
.. (force and " forcefully" or ""))
if force then
- fontnames = fontnames_init(false)
+ fontnames = fontnames_init()
else
if not fontnames then
fontnames = load_names(dry_run)
@@ -2186,10 +2186,10 @@ update_names = function (fontnames, force, dry_run)
if fontnames.version ~= names.version then
report("both", 1, "db", "No font names database or old "
.. "one found; generating new one")
- fontnames = fontnames_init(true)
+ fontnames = fontnames_init()
end
end
- local newfontnames = fontnames_init(true)
+ local newfontnames = fontnames_init()
read_blacklist()
local scanned, new