aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/deps.lua2
1 files changed, 2 insertions, 0 deletions
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)
608 local found = false 608 local found = false
609 failed_file = nil 609 failed_file = nil
610 for _, f in pairs(files) do 610 for _, f in pairs(files) do
611
611 -- small convenience hack 612 -- small convenience hack
612 if f:match("%.so$") or f:match("%.dylib$") or f:match("%.dll$") then 613 if f:match("%.so$") or f:match("%.dylib$") or f:match("%.dll$") then
613 f = f:gsub("%.[^.]+$", "."..cfg.external_lib_extension) 614 f = f:gsub("%.[^.]+$", "."..cfg.external_lib_extension)
614 end 615 end
616
615 for _, d in ipairs(paths) do 617 for _, d in ipairs(paths) do
616 if f:match("%*") then 618 if f:match("%*") then
617 local replaced = f:gsub("%.", "%%."):gsub("%*", ".*") 619 local replaced = f:gsub("%.", "%%."):gsub("%*", ".*")