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

Commit

Permalink
[db] fix duplicate files in scan list
Browse files Browse the repository at this point in the history
Fix lualatex#394

Due to an oversight, all files except AFM got scanned twice.
  • Loading branch information
phi-gamma committed Jan 29, 2017
1 parent 616b907 commit 4844750
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 4844750

Please sign in to comment.