summaryrefslogtreecommitdiff
path: root/src/rebar_digraph.erl
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-04-11 19:53:53 -0500
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-04-11 19:53:53 -0500
commit0ad833b700f59bd5fd5e3b34aab2f887424671f3 (patch)
treeebaf2b2c639509b9211528c15a2337f27b965c9f /src/rebar_digraph.erl
parentf88bb57cd34f3636217a1d1ae5f63eb32ba448d6 (diff)
parent4fb9207d9a7bd4e8d227c05ba2eb6089ca98322c (diff)
Merge pull request #330 from tsloughter/wip_single_atom_deps
support single atoms for pkg deps, fetch highest version available
Diffstat (limited to 'src/rebar_digraph.erl')
-rw-r--r--src/rebar_digraph.erl10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/rebar_digraph.erl b/src/rebar_digraph.erl
index 129ea35..7c1fe90 100644
--- a/src/rebar_digraph.erl
+++ b/src/rebar_digraph.erl
@@ -72,10 +72,12 @@ cull_deps(Graph, Vertices) ->
cull_deps(Graph,
Vertices,
1,
- lists:foldl(fun({Key, _}, Levels) -> dict:store(Key, 0, Levels) end,
- dict:new(), Vertices),
- lists:foldl(fun({Key, _}=N, Solution) -> dict:store(Key, N, Solution) end,
- dict:new(), Vertices),
+ lists:foldl(fun({Key, _}, Levels) ->
+ dict:store(Key, 0, Levels)
+ end, dict:new(), Vertices),
+ lists:foldl(fun({Key, _}=N, Solution) ->
+ dict:store(Key, N, Solution)
+ end, dict:new(), Vertices),
[]).
cull_deps(_Graph, [], _Level, Levels, Solution, Discarded) ->