diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-10-29 19:26:25 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-10-29 19:26:25 -0200 |
commit | 86d183efd39ddf113b0518eb3e969779fa52197d (patch) | |
tree | 4f224554912d3a917018a295f87de9bd6da3f21c | |
parent | 33baf1f4b18fbd4612d0c461d182d101e2a5dc90 (diff) | |
download | luarocks-86d183efd39ddf113b0518eb3e969779fa52197d.tar.gz luarocks-86d183efd39ddf113b0518eb3e969779fa52197d.tar.bz2 luarocks-86d183efd39ddf113b0518eb3e969779fa52197d.zip |
Don't loop in case of circular dependencies
-rw-r--r-- | src/luarocks/deps.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/luarocks/deps.lua b/src/luarocks/deps.lua index 7f3b44f2..732f587c 100644 --- a/src/luarocks/deps.lua +++ b/src/luarocks/deps.lua | |||
@@ -705,6 +705,7 @@ function scan_deps(results, missing, manifest, name, version, deps_mode) | |||
705 | rockspec = { dependencies = deplist } | 705 | rockspec = { dependencies = deplist } |
706 | end | 706 | end |
707 | local matched, failures = match_deps(rockspec, nil, deps_mode) | 707 | local matched, failures = match_deps(rockspec, nil, deps_mode) |
708 | results[name] = results | ||
708 | for _, match in pairs(matched) do | 709 | for _, match in pairs(matched) do |
709 | results, missing = scan_deps(results, missing, manifest, match.name, match.version, deps_mode) | 710 | results, missing = scan_deps(results, missing, manifest, match.name, match.version, deps_mode) |
710 | end | 711 | end |