summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Robertson <wspr81@gmail.com>2010-05-19 14:49:17 +0930
committerWill Robertson <wspr81@gmail.com>2010-05-19 18:13:33 +0930
commit3944ae127884fd080a1ca67d024bc3c6194b6b0e (patch)
tree6fd755521dd8bde95985649ddea0a81a7618442f
parente87d7e1fcb91332b5f571fece1bca2f2756e4930 (diff)
downloadluaotfload-3944ae127884fd080a1ca67d024bc3c6194b6b0e.tar.gz
simplify logging slightly
-rw-r--r--otfl-font-nms.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index 88c28ac..ffaea0a 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -485,15 +485,15 @@ local function scan_dir(dirname, fontnames, newfontnames, texmf)
--]]
local list, found = { }, { }
local nbfound = 0
+ if trace_search then
+ logs.report("scanning '%s'", dirname)
+ end
for _,ext in ipairs(font_extensions) do
- if trace_search then
- logs.report("scanning '%s' for '%s' fonts", dirname, ext)
- end
found = glob(dirname .. "/**." .. ext)
-- note that glob fails silently on broken symlinks, which happens
-- sometimes in TeX Live.
if trace_search then
- logs.report("%s fonts found", #found)
+ logs.report("%s '%s' fonts found", #found, ext)
end
nbfound = nbfound + #found
table.append(list, found)