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

[db] fix duplicate files in scan list #396

Merged
merged 1 commit into from
Jan 29, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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