diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-11-10 11:11:00 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-11-10 11:11:00 -0200 |
commit | 723bf994b0f19f7368b2f30b8818cde871d7e3f1 (patch) | |
tree | 30a3562fa32a879f7c74561feded96fd7c7aad5b | |
parent | a35dd43752f0ee10d65c27200299176b29db45ef (diff) | |
download | luarocks-723bf994b0f19f7368b2f30b8818cde871d7e3f1.tar.gz luarocks-723bf994b0f19f7368b2f30b8818cde871d7e3f1.tar.bz2 luarocks-723bf994b0f19f7368b2f30b8818cde871d7e3f1.zip |
Isolate the convenience hack, for readability.
-rw-r--r-- | src/luarocks/deps.lua | 2 |
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("%*", ".*") |