Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Commit

Permalink
Merge pull request #396 from phi-gamma/master
Browse files Browse the repository at this point in the history
[db] fix duplicate files in scan list
  • Loading branch information
phi-gamma authored Jan 29, 2017
2 parents c6a32f8 + 4844750 commit 0806016
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/luaotfload-database.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0806016

Please sign in to comment.