diff options
Diffstat (limited to 'luarocks/src/luarocks/deps.lua')
-rw-r--r-- | luarocks/src/luarocks/deps.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/luarocks/src/luarocks/deps.lua b/luarocks/src/luarocks/deps.lua index 3f75f9b..0e3265b 100644 --- a/luarocks/src/luarocks/deps.lua +++ b/luarocks/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("%*", ".*") |