summaryrefslogtreecommitdiff
path: root/otfl-font-nms.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-03-30 14:59:09 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-03-30 14:59:09 +0200
commitb00e00c338955306d524941d680312d99259f9a1 (patch)
treeba7ed523dccc5cc07dd47249cef7881aec29174c /otfl-font-nms.lua
parent33e804f8b3ff14ff7541ec09f49fe5c010a6e5ba (diff)
downloadluaotfload-b00e00c338955306d524941d680312d99259f9a1.tar.gz
Purge removed fonts by default
There is no performance difference, so it doesn't make sense to keep removed fonts in the database.
Diffstat (limited to 'otfl-font-nms.lua')
-rw-r--r--otfl-font-nms.lua16
1 files changed, 4 insertions, 12 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index e0bc384..130516c 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -444,7 +444,7 @@ local function status_init()
}
end
-local function update(fontnames, status, force, purge)
+local function update(fontnames, status, force)
--[[
The main function, scans everything
- fontnames is the final table to return
@@ -464,19 +464,11 @@ local function update(fontnames, status, force, purge)
end
end
end
- local newfontnames = nil
- local newstatus = nil
- if purge then
- newfontnames = fontnames_init()
- newstatus = status_init()
- end
+ local newfontnames = fontnames_init()
+ local newstatus = status_init()
scan_texmf_tree(fontnames, status, newfontnames, newstatus)
scan_os_fonts (fontnames, status, newfontnames, newstatus)
- if purge then
- return newfontnames, newstatus
- else
- return fontnames, status
- end
+ return newfontnames, newstatus
end
names.scan = scan_dir