summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-07-09 14:29:01 -0500
committerTristan Sloughter <t@crashfast.com>2015-07-09 14:29:59 -0500
commit8aaff65d6bdd3a6d5f08d7d79fe9d5018d09b61b (patch)
tree9a6898213d7415fd2c2b7516c15b3ac54dbdf10c
parent333a102bcf9cc40e65c71aa66b83917611f08731 (diff)
bug fix: was using outer LevelsAcc variable in inner foldl
-rw-r--r--src/rebar_digraph.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_digraph.erl b/src/rebar_digraph.erl
index d52a811..a9c1cbb 100644
--- a/src/rebar_digraph.erl
+++ b/src/rebar_digraph.erl
@@ -91,9 +91,9 @@ cull_deps(Graph, Vertices, Level, Levels, Solution, Discarded) ->
lists:foldl(fun({Key, _}=N, {NewVertices1, SolutionAcc1, LevelsAcc1, DiscardedAcc1}) ->
case dict:find(Key, SolutionAcc1) of
{ok, N} -> % already seen
- {NewVertices1, SolutionAcc1, LevelsAcc, DiscardedAcc1};
+ {NewVertices1, SolutionAcc1, LevelsAcc1, DiscardedAcc1};
{ok, _} -> % conflict resolution!
- {NewVertices1, SolutionAcc1, LevelsAcc, [N|DiscardedAcc1]};
+ {NewVertices1, SolutionAcc1, LevelsAcc1, [N|DiscardedAcc1]};
error ->
{[N | NewVertices1],
dict:store(Key, N, SolutionAcc1),