summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2017-01-29 22:02:26 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2017-01-29 22:02:29 +0100
commit4844750639b08e323f78e21c98b986aacac8eb92 (patch)
tree0dc8cefe8698ee02b724777499eae3866e322b41 /src
parent616b9077567fd670341696cb6ff2bfc71cf691a9 (diff)
downloadluaotfload-4844750639b08e323f78e21c98b986aacac8eb92.tar.gz
[db] fix duplicate files in scan list
Fix #394 Due to an oversight, all files except AFM got scanned twice.
Diffstat (limited to 'src')
-rw-r--r--src/luaotfload-database.lua4
1 files changed, 1 insertions, 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