aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/fetch.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fetch.lua b/src/luarocks/fetch.lua
index 039efeea..d47e0fc9 100644
--- a/src/luarocks/fetch.lua
+++ b/src/luarocks/fetch.lua
@@ -364,7 +364,7 @@ function fetch.get_sources(rockspec, extract, dest_dir)
364 -- with rockspecs newer than 3.0. 364 -- with rockspecs newer than 3.0.
365 local dir_count, found_dir = 0 365 local dir_count, found_dir = 0
366 366
367 if deps.format_is_at_least(rockspec, "3.0") then 367 if not rockspec.source.dir_set and deps.format_is_at_least(rockspec, "3.0") then
368 local files = fs.list_dir() 368 local files = fs.list_dir()
369 for _, f in ipairs(files) do 369 for _, f in ipairs(files) do
370 if fs.is_dir(f) then 370 if fs.is_dir(f) then