diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2015-06-24 17:17:30 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-06-24 17:17:30 -0300 |
| commit | 6cb37a1c73fd9f8b23565725f835b84e9872cf29 (patch) | |
| tree | 1a7d35f43d7e564d7d4cd1697477e3e39f1fd701 /src | |
| parent | 9ed2084649a3c8d930f903edd03c08c1ed6c9bf8 (diff) | |
| download | luarocks-6cb37a1c73fd9f8b23565725f835b84e9872cf29.tar.gz luarocks-6cb37a1c73fd9f8b23565725f835b84e9872cf29.tar.bz2 luarocks-6cb37a1c73fd9f8b23565725f835b84e9872cf29.zip | |
Don't shadow filename variable: fixes error message.
Diffstat (limited to 'src')
| -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 |
