summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2017-01-29 22:07:33 +0100
committerGitHub <noreply@github.com>2017-01-29 22:07:33 +0100
commit08060160fcde7a2f07fbf10260d3d2efe155f6c0 (patch)
tree0dc8cefe8698ee02b724777499eae3866e322b41 /src
parentc6a32f887d4084f0c3bde51fda4a737b51d1eb06 (diff)
parent4844750639b08e323f78e21c98b986aacac8eb92 (diff)
downloadluaotfload-08060160fcde7a2f07fbf10260d3d2efe155f6c0.tar.gz
Merge pull request #396 from phi-gamma/master
[db] fix duplicate files in scan list
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