diff options
| author | Albert Puertolas <whitewolf7@gmail.com> | 2014-05-24 16:01:08 +0200 |
|---|---|---|
| committer | Albert Puertolas <whitewolf7@gmail.com> | 2014-05-24 16:01:08 +0200 |
| commit | 3eeb977754023914d862c8b498fbb06e7362e95c (patch) | |
| tree | 6676fbce6818ab9781cd379ba959dca4ea065a11 /src | |
| parent | 9db13c5a3508b1aafb554203955f7b3998bf8d5f (diff) | |
| download | luarocks-3eeb977754023914d862c8b498fbb06e7362e95c.tar.gz luarocks-3eeb977754023914d862c8b498fbb06e7362e95c.tar.bz2 luarocks-3eeb977754023914d862c8b498fbb06e7362e95c.zip | |
Fix curl --connect-timeout option
curl expects options and their arguments to be separate by space
instead of ‘=‘
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/fs/unix/tools.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 264 | elseif cfg.downloader == "curl" then | 264 | elseif cfg.downloader == "curl" then |
| 265 | local curl_cmd = fs.Q(vars.CURL).." -f -k -L --user-agent '"..cfg.user_agent.." via curl' " | 265 | local curl_cmd = fs.Q(vars.CURL).." -f -k -L --user-agent '"..cfg.user_agent.." via curl' " |
| 266 | if cfg.connection_timeout and cfg.connection_timeout > 0 then | 266 | if cfg.connection_timeout and cfg.connection_timeout > 0 then |
| 267 | curl_cmd = curl_cmd .. "--connect-timeout="..tonumber(cfg.connection_timeout).." " | 267 | curl_cmd = curl_cmd .. "--connect-timeout "..tonumber(cfg.connection_timeout).." " |
| 268 | end | 268 | end |
| 269 | ok = fs.execute_string(curl_cmd..fs.Q(url).." 2> /dev/null 1> "..fs.Q(filename)) | 269 | ok = fs.execute_string(curl_cmd..fs.Q(url).." 2> /dev/null 1> "..fs.Q(filename)) |
| 270 | end | 270 | end |
