diff options
author | arichard <richard4@cs.stanford.edu> | 2021-11-03 22:12:40 -0700 |
---|---|---|
committer | arichard <richard4@cs.stanford.edu> | 2021-11-03 22:12:40 -0700 |
commit | dee2acd9029ff6a356c59184d2236961ad5b3c23 (patch) | |
tree | 4e9d9f0f951ecc61e99b5d6e9f979b702868ac9f | |
parent | 4ad9a24bb956bed62a38cea890cd1d6865a4b9ec (diff) | |
download | luarocks-dee2acd9029ff6a356c59184d2236961ad5b3c23.tar.gz luarocks-dee2acd9029ff6a356c59184d2236961ad5b3c23.tar.bz2 luarocks-dee2acd9029ff6a356c59184d2236961ad5b3c23.zip |
Makes a variable local
-rw-r--r-- | src/luarocks/deps.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/deps.lua b/src/luarocks/deps.lua index 01851081..fc9ed804 100644 --- a/src/luarocks/deps.lua +++ b/src/luarocks/deps.lua | |||
@@ -470,7 +470,7 @@ local function check_external_dependency_at(prefix, name, ext_files, vars, dirs, | |||
470 | end) | 470 | end) |
471 | for _, fa in ipairs(files) do | 471 | for _, fa in ipairs(files) do |
472 | 472 | ||
473 | f = fa[2] | 473 | local f = fa[2] |
474 | -- small convenience hack | 474 | -- small convenience hack |
475 | if f:match("%.so$") or f:match("%.dylib$") or f:match("%.dll$") then | 475 | if f:match("%.so$") or f:match("%.dylib$") or f:match("%.dll$") then |
476 | f = f:gsub("%.[^.]+$", "."..cfg.external_lib_extension) | 476 | f = f:gsub("%.[^.]+$", "."..cfg.external_lib_extension) |