From 3eeb977754023914d862c8b498fbb06e7362e95c Mon Sep 17 00:00:00 2001 From: Albert Puertolas Date: Sat, 24 May 2014 16:01:08 +0200 Subject: Fix curl --connect-timeout option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit curl expects options and their arguments to be separate by space instead of ‘=‘ --- src/luarocks/fs/unix/tools.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/fs/unix/tools.lua b/src/luarocks/fs/unix/tools.lua index f8f39eca..69466931 100644 --- a/src/luarocks/fs/unix/tools.lua +++ b/src/luarocks/fs/unix/tools.lua @@ -264,7 +264,7 @@ function tools.download(url, filename, cache) elseif cfg.downloader == "curl" then local curl_cmd = fs.Q(vars.CURL).." -f -k -L --user-agent '"..cfg.user_agent.." via curl' " if cfg.connection_timeout and cfg.connection_timeout > 0 then - curl_cmd = curl_cmd .. "--connect-timeout="..tonumber(cfg.connection_timeout).." " + curl_cmd = curl_cmd .. "--connect-timeout "..tonumber(cfg.connection_timeout).." " end ok = fs.execute_string(curl_cmd..fs.Q(url).." 2> /dev/null 1> "..fs.Q(filename)) end -- cgit v1.2.3-55-g6feb