From 91c97ddc438c225123cf50ae674931381c0fbf47 Mon Sep 17 00:00:00 2001
From: Philipp Gesang <phg@phi-gamma.net>
Date: Sun, 22 Nov 2015 00:37:26 +0100
Subject: [db] emit message when skipping PWD

---
 src/luaotfload-database.lua | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index 2bce001..cc8549e 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -2166,7 +2166,11 @@ local filter_out_pwd = function (dirs)
     for i = 1, #dirs do
         --- better safe than sorry
         local dir = path_normalize (lpegmatch (stripslashes, dirs[i]))
-        if not (dir == "." or dir == pwd) then
+        if dir == "." or dir == pwd then
+            logreport ("both", 3, "db",
+                       "Path ā€œ%sā€ matches $PWD (ā€œ%sā€), skipping.",
+                       dir, pwd)
+        else
             result[#result+1] = dir
         end
     end
-- 
cgit v1.2.3