summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-07-09 15:45:14 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-07-09 15:45:14 -0400
commit41a9a7b855dfe9152d3571573f6f501fdd69be41 (patch)
tree9a6898213d7415fd2c2b7516c15b3ac54dbdf10c /src
parent333a102bcf9cc40e65c71aa66b83917611f08731 (diff)
parent8aaff65d6bdd3a6d5f08d7d79fe9d5018d09b61b (diff)
Merge pull request #605 from tsloughter/pkg_cull_fix
bug fix: was using outer LevelsAcc variable in inner foldl
Diffstat (limited to 'src')
-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),