Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/luajit-rocks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'luarocks/src/luarocks/deps.lua')
-rw-r--r--luarocks/src/luarocks/deps.lua2
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("%*", ".*")