From 6164f6f5c80320a0f250bbf187071b4feb668518 Mon Sep 17 00:00:00 2001 From: Geoff Leyland Date: Thu, 24 Dec 2015 21:06:00 +1300 Subject: Actually use rockspec.source.dir_set --- src/luarocks/fetch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- with rockspecs newer than 3.0. local dir_count, found_dir = 0 - if deps.format_is_at_least(rockspec, "3.0") then + if not rockspec.source.dir_set and deps.format_is_at_least(rockspec, "3.0") then local files = fs.list_dir() for _, f in ipairs(files) do if fs.is_dir(f) then -- cgit v1.2.3-55-g6feb