diff options
Diffstat (limited to '')
-rw-r--r-- | src/luarocks/fetch.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/fetch.lua b/src/luarocks/fetch.lua index 83c76c9c..686aadcd 100644 --- a/src/luarocks/fetch.lua +++ b/src/luarocks/fetch.lua | |||
@@ -37,11 +37,11 @@ function fetch.fetch_url(url, filename, cache) | |||
37 | if protocol == "file" then | 37 | if protocol == "file" then |
38 | return fs.absolute_name(pathname) | 38 | return fs.absolute_name(pathname) |
39 | elseif fetch.is_basic_protocol(protocol, true) then | 39 | elseif fetch.is_basic_protocol(protocol, true) then |
40 | local ok, filename = fs.download(url, filename, cache) | 40 | local ok, name = fs.download(url, filename, cache) |
41 | if not ok then | 41 | if not ok then |
42 | return nil, "Failed downloading "..url..(filename and " - "..filename or ""), "network" | 42 | return nil, "Failed downloading "..url..(filename and " - "..filename or ""), "network" |
43 | end | 43 | end |
44 | return filename | 44 | return name |
45 | else | 45 | else |
46 | return nil, "Unsupported protocol "..protocol | 46 | return nil, "Unsupported protocol "..protocol |
47 | end | 47 | end |