summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-27 22:38:01 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-27 22:38:01 +0200
commite263928dfb028952384103d1edc98cea467d4555 (patch)
tree2e676d0a537cd007287aadebb8611b89d5058a0d /luaotfload-database.lua
parentc7d9945cbece75331c9342ce0a8eaa9c37a0a06b (diff)
downloadluaotfload-e263928dfb028952384103d1edc98cea467d4555.tar.gz
log duplicate fonts
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r--luaotfload-database.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index e7d4bf9..65f2bf7 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -1489,6 +1489,18 @@ local gen_fast_lookups = function (fontnames)
--- this will overwrite existing entries
for i=1, #lst do
local idx, base, bare, intexmf, full = unpack(lst[i])
+
+ local known = filenames.base[base] or filenames.bare[bare]
+ if known then --- known
+ report("both", 1, "db",
+ "font file ā€œ%sā€ already indexed (%d)",
+ base, idx)
+ report("both", 2, "db", "> old location: %s",
+ (filenames.full[known] or "texmf"))
+ report("both", 2, "db", "> new location: %s",
+ (intexmf and "texmf" or full))
+ end
+
filenames.bare[bare] = idx
filenames.base[base] = idx
if intexmf == true then