aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPierre Chapuis <catwell-github@catwell.info>2016-01-02 17:19:06 +0100
committerPierre Chapuis <catwell-github@catwell.info>2016-01-02 17:19:06 +0100
commita85781cfda77b4ba0d0bb399f80a2ad2babc5a9b (patch)
treef2ef9047ce7fdb2374dc0264c7f34259b9e7e836 /src
parentc36c7d0d10519f4fc6d38005e297dd935a031f72 (diff)
downloadluarocks-a85781cfda77b4ba0d0bb399f80a2ad2babc5a9b.tar.gz
luarocks-a85781cfda77b4ba0d0bb399f80a2ad2babc5a9b.tar.bz2
luarocks-a85781cfda77b4ba0d0bb399f80a2ad2babc5a9b.zip
avoid "missing dependency" errors for defaults
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/deps.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/luarocks/deps.lua b/src/luarocks/deps.lua
index 764116a2..96f6a005 100644
--- a/src/luarocks/deps.lua
+++ b/src/luarocks/deps.lua
@@ -727,7 +727,10 @@ function deps.scan_deps(results, missing, manifest, name, version, deps_mode)
727 end 727 end
728 dependencies_name[version] = rockspec.dependencies 728 dependencies_name[version] = rockspec.dependencies
729 else 729 else
730 rockspec = { dependencies = deplist, rocks_provided = {} } 730 rockspec = {
731 dependencies = deplist,
732 rocks_provided = setmetatable({}, { __index = cfg.rocks_provided_3_0 })
733 }
731 end 734 end
732 local matched, failures = deps.match_deps(rockspec, nil, deps_mode) 735 local matched, failures = deps.match_deps(rockspec, nil, deps_mode)
733 results[name] = results 736 results[name] = results