diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2011-01-17 14:36:01 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2011-01-17 14:36:01 -0200 |
commit | 1b918fa033b6522bc41b63ef395c331a3e984c6b (patch) | |
tree | 375a8e18b75783ff4db5bf45c375d0cc332dc0f9 /src | |
parent | 738cfa1bd678fc67bae0cc904497aed39fd19ce6 (diff) | |
download | luarocks-1b918fa033b6522bc41b63ef395c331a3e984c6b.tar.gz luarocks-1b918fa033b6522bc41b63ef395c331a3e984c6b.tar.bz2 luarocks-1b918fa033b6522bc41b63ef395c331a3e984c6b.zip |
Add the -L flag to curl so it follows redirects.
Change submitted by Brian Maher.
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 691c2648..313f0dd6 100644 --- a/src/luarocks/fs/unix/tools.lua +++ b/src/luarocks/fs/unix/tools.lua | |||
@@ -239,7 +239,7 @@ function download(url, filename) | |||
239 | end | 239 | end |
240 | elseif cfg.downloader == "curl" then | 240 | elseif cfg.downloader == "curl" then |
241 | filename = filename or dir.base_name(url) | 241 | filename = filename or dir.base_name(url) |
242 | return fs.execute_string("curl --user-agent "..cfg.user_agent.." "..fs.Q(url).." 2> /dev/null 1> "..fs.Q(filename)) | 242 | return fs.execute_string("curl -L --user-agent "..cfg.user_agent.." "..fs.Q(url).." 2> /dev/null 1> "..fs.Q(filename)) |
243 | end | 243 | end |
244 | end | 244 | end |
245 | 245 | ||