diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/fetch.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fetch.lua b/src/luarocks/fetch.lua index 073b14d1..3c2224f5 100644 --- a/src/luarocks/fetch.lua +++ b/src/luarocks/fetch.lua | |||
@@ -30,7 +30,7 @@ function fetch_url(url, filename) | |||
30 | if protocol == "file" then | 30 | if protocol == "file" then |
31 | return fs.absolute_name(pathname) | 31 | return fs.absolute_name(pathname) |
32 | elseif protocol == "http" or protocol == "ftp" or protocol == "https" then | 32 | elseif protocol == "http" or protocol == "ftp" or protocol == "https" then |
33 | local ok = fs.download(url) | 33 | local ok = fs.download(url, filename) |
34 | if not ok then | 34 | if not ok then |
35 | return nil, "Failed downloading "..url, "network" | 35 | return nil, "Failed downloading "..url, "network" |
36 | end | 36 | end |