diff options
author | Geoff Leyland <geoff.leyland@incremental.co.nz> | 2015-12-24 21:06:00 +1300 |
---|---|---|
committer | Geoff Leyland <geoff.leyland@incremental.co.nz> | 2015-12-24 21:06:00 +1300 |
commit | 6164f6f5c80320a0f250bbf187071b4feb668518 (patch) | |
tree | 60ac6262c3437a386ab0da797c672a3a1d3191c3 /src | |
parent | 7590c40d647d130e9005f6efc10ab62f7e388e4b (diff) | |
download | luarocks-6164f6f5c80320a0f250bbf187071b4feb668518.tar.gz luarocks-6164f6f5c80320a0f250bbf187071b4feb668518.tar.bz2 luarocks-6164f6f5c80320a0f250bbf187071b4feb668518.zip |
Actually use rockspec.source.dir_set
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/fetch.lua | 2 |
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 |