aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/fetch.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/luarocks/fetch.lua b/src/luarocks/fetch.lua
index 980c8fe2..497ae84f 100644
--- a/src/luarocks/fetch.lua
+++ b/src/luarocks/fetch.lua
@@ -319,9 +319,10 @@ function fetch.get_sources(rockspec, extract, dest_dir)
319 local url = rockspec.source.url 319 local url = rockspec.source.url
320 local name = rockspec.name.."-"..rockspec.version 320 local name = rockspec.name.."-"..rockspec.version
321 local filename = rockspec.source.file 321 local filename = rockspec.source.file
322 local source_file, store_dir, err, errcode 322 local source_file, store_dir
323 local ok, err, errcode
323 if dest_dir then 324 if dest_dir then
324 local ok, err = fs.change_dir(dest_dir) 325 ok, err = fs.change_dir(dest_dir)
325 if not ok then return nil, err, "dest_dir" end 326 if not ok then return nil, err, "dest_dir" end
326 source_file, err, errcode = fetch.fetch_url(url, filename) 327 source_file, err, errcode = fetch.fetch_url(url, filename)
327 fs.pop_dir() 328 fs.pop_dir()