From 4844750639b08e323f78e21c98b986aacac8eb92 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 29 Jan 2017 22:02:26 +0100 Subject: [db] fix duplicate files in scan list Fix #394 Due to an oversight, all files except AFM got scanned twice. --- src/luaotfload-database.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua index 621a24b..4a71d34 100644 --- a/src/luaotfload-database.lua +++ b/src/luaotfload-database.lua @@ -2111,15 +2111,13 @@ process_dir_tree = function (acc, dirs, done) elseif lfsisfile (fullpath) then ent = stringlower (ent) if lpegmatch (p_font_filter, ent) then - newfiles[#newfiles+1] = fullpath if filesuffix (ent) == "afm" then local pfbpath = locate_matching_pfb (ent, dir) if pfbpath then newfiles[#newfiles+1] = pfbpath end - else - newfiles[#newfiles+1] = fullpath end + newfiles[#newfiles+1] = fullpath end end end -- cgit v1.2.3