From 9c13a6817b734968c96d284176b048f509fa58f2 Mon Sep 17 00:00:00 2001 From: Roman Tsisyk Date: Mon, 4 Nov 2013 11:22:27 +0400 Subject: Fix #174: An extra parenthesis in build/cmake.lua --- src/luarocks/build/cmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/build/cmake.lua b/src/luarocks/build/cmake.lua index f1737876..0df3a921 100644 --- a/src/luarocks/build/cmake.lua +++ b/src/luarocks/build/cmake.lua @@ -22,7 +22,7 @@ function run(rockspec) util.variable_substitutions(variables, rockspec.variables) - if not fs.execute_quiet(rockspec.variables.CMAKE, "--help")) then + if not fs.execute_quiet(rockspec.variables.CMAKE, "--help") then return nil, "'"..rockspec.variables.CMAKE.."' program not found. Is cmake installed? You may want to edit variables.CMAKE" end -- cgit v1.2.3-55-g6feb From ffb82c3134595b615a9fbc0c70a6281117586492 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 4 Nov 2013 11:23:03 -0200 Subject: Merge branch 'master' of github.com:keplerproject/luarocks --- src/luarocks/loader.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/loader.lua b/src/luarocks/loader.lua index a116766c..aa3b2781 100644 --- a/src/luarocks/loader.lua +++ b/src/luarocks/loader.lua @@ -108,7 +108,7 @@ end -- @return table or (nil, string): The module table as returned by some other loader, -- or nil followed by an error message if no other loader managed to load the module. local function call_other_loaders(module, name, version, module_name) - for i, loader in pairs(package.loaders) do + for i, loader in ipairs(package.loaders) do if loader ~= luarocks_loader then local results = { loader(module_name) } if type(results[1]) == "function" then -- cgit v1.2.3-55-g6feb