summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-02-10 21:49:38 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2014-02-10 21:49:38 +0100
commit9f7c9b2caba2bd85a03d8a95e3892dacef3cafca (patch)
tree7b3ce644559c71b26a9a7eb6e6b2bb67dfd74a95 /luaotfload-database.lua
parent446596c46f495760b8c19d51bdfc3d210cd194bc (diff)
parentf874408006c90ba4ecdf96fb84a2a560fb30429f (diff)
downloadluaotfload-9f7c9b2caba2bd85a03d8a95e3892dacef3cafca.tar.gz
Merge pull request #195 from phi-gamma/texlive2014
update blacklist
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r--luaotfload-database.lua13
1 files changed, 9 insertions, 4 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index c69fc03..a3f3718 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -1986,13 +1986,16 @@ read_blacklist = function ()
local whitelist = { }
if files and type(files) == "table" then
- for _,v in next, files do
- for line in iolines(v) do
+ for _, path in next, files do
+ for line in iolines (path) do
line = stringstrip(line) -- to get rid of lines like " % foo"
- local first_chr = stringsub(line, 1, 1) --- faster than find
+ local first_chr = stringsub(line, 1, 1)
if first_chr == "%" or stringis_empty(line) then
-- comment or empty line
elseif first_chr == "-" then
+ report ("both", 3, "db",
+ "Whitelisted file %q via %q.",
+ line, path)
whitelist[#whitelist+1] = stringsub(line, 2, -1)
else
local cmt = stringfind(line, "%%")
@@ -2000,7 +2003,9 @@ read_blacklist = function ()
line = stringsub(line, 1, cmt - 1)
end
line = stringstrip(line)
- report("log", 2, "db", "Blacklisted file %q.", line)
+ report ("both", 3, "db",
+ "Blacklisted file %q via %q.",
+ line, path)
blacklist[#blacklist+1] = line
end
end