From b1db72d91cda7a17b2f95a0a4f90b838cbf7993f Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Sun, 10 Jan 2016 22:49:42 -0800 Subject: removed duplicate code, this part seems copy-pasted from the part that was later fixed by #455, hence this still contained the same bug --- src/luarocks/upload/api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/luarocks/upload/api.lua b/src/luarocks/upload/api.lua index b56f23e1..6a830abd 100644 --- a/src/luarocks/upload/api.lua +++ b/src/luarocks/upload/api.lua @@ -138,9 +138,9 @@ function Api:request(url, params, post_params) if not json_ok then return nil, "A JSON library is required for this command. "..json end if cfg.downloader == "wget" then - local curl_ok = fs.execute_quiet(vars.CURL, "--version") + local curl_ok, err = fs.is_tool_available(vars.CURL, "curl") if not curl_ok then - return nil, "Missing network helper program 'curl'.\nMake sure 'curl' is installed and available from your path." + return nil, err end end -- cgit v1.2.3-55-g6feb