aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/fetch.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/luarocks/fetch.lua b/src/luarocks/fetch.lua
index dfa6f191..824a3731 100644
--- a/src/luarocks/fetch.lua
+++ b/src/luarocks/fetch.lua
@@ -344,7 +344,8 @@ function fetch.get_sources(rockspec, extract, dest_dir)
344 if extract then 344 if extract then
345 local ok, err = fs.change_dir(store_dir) 345 local ok, err = fs.change_dir(store_dir)
346 if not ok then return nil, err end 346 if not ok then return nil, err end
347 fs.unpack_archive(rockspec.source.file) 347 ok, err = fs.unpack_archive(rockspec.source.file)
348 if not ok then return nil, err end
348 if not fs.exists(rockspec.source.dir) then 349 if not fs.exists(rockspec.source.dir) then
349 return nil, "Directory "..rockspec.source.dir.." not found inside archive "..rockspec.source.file, "source.dir", source_file, store_dir 350 return nil, "Directory "..rockspec.source.dir.." not found inside archive "..rockspec.source.file, "source.dir", source_file, store_dir
350 end 351 end