summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2013-04-18 14:32:54 +0200
committerElie Roux <elie.roux@telecom-bretagne.eu>2013-04-18 14:32:54 +0200
commit64b8916cca621917b4fcd971e7921ec44f1f3352 (patch)
tree0607179331539b036efb8ba4dd539a833c6977b8
parenta198740f4f6f5016d4961854efaebbcb66dbe55b (diff)
downloadluaotfload-64b8916cca621917b4fcd971e7921ec44f1f3352.tar.gz
I had forgotten this check for reference-looping
-rw-r--r--otfl-font-nms.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index 5cca490..50febab 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -582,7 +582,9 @@ local function read_fonts_conf(path, results, passed_paths)
read_fonts_conf(include, results, passed_paths)
elseif lfs.isdir(include) then
for _,f in next, glob(file.join(include, "*.conf")) do
- read_fonts_conf(f, results, passed_paths)
+ if not table.contains(passed_paths, f) then
+ read_fonts_conf(f, results, passed_paths)
+ end
end
end
end