From 723bf994b0f19f7368b2f30b8818cde871d7e3f1 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 10 Nov 2014 11:11:00 -0200 Subject: Isolate the convenience hack, for readability. --- src/luarocks/deps.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/luarocks/deps.lua b/src/luarocks/deps.lua index 3f75f9be..0e3265b5 100644 --- a/src/luarocks/deps.lua +++ b/src/luarocks/deps.lua @@ -608,10 +608,12 @@ function deps.check_external_deps(rockspec, mode) local found = false failed_file = nil for _, f in pairs(files) do + -- small convenience hack if f:match("%.so$") or f:match("%.dylib$") or f:match("%.dll$") then f = f:gsub("%.[^.]+$", "."..cfg.external_lib_extension) end + for _, d in ipairs(paths) do if f:match("%*") then local replaced = f:gsub("%.", "%%."):gsub("%*", ".*") -- cgit v1.2.3-55-g6feb