From 940305da45e23d826100de6b32e5b0619aa1b5a0 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 19 Apr 2010 19:11:26 -0300 Subject: Properly handle source.url's where source.file is used to indicate the actual filename of the file to be fetched (useful in downloads from github...) --- src/luarocks/fetch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) if protocol == "file" then return fs.absolute_name(pathname) elseif protocol == "http" or protocol == "ftp" or protocol == "https" then - local ok = fs.download(url) + local ok = fs.download(url, filename) if not ok then return nil, "Failed downloading "..url, "network" end -- cgit v1.2.3-55-g6feb