Browse Source

Merge pull request #348 from tsloughter/ignore_optional_hex

ignore optional deps for now
pull/346/merge
Fred Hebert 10 years ago
parent
commit
ff47ccdd0f
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/rebar_prv_update.erl

+ 4
- 2
src/rebar_prv_update.erl View File

@ -91,7 +91,7 @@ hex_to_graph(Filename) ->
{Dict1, Graph}.
update_graph(Pkg, PkgVsn, Deps, HexRegistry, Graph) ->
lists:foldl(fun([Dep, DepVsn, _, _], DepsListAcc) ->
lists:foldl(fun([Dep, DepVsn, false, _AppName | _], DepsListAcc) ->
case DepVsn of
<<"~> ", Vsn/binary>> ->
HighestDepVsn = rebar_packages:find_highest_matching(Dep, Vsn, HexRegistry),
@ -100,5 +100,7 @@ update_graph(Pkg, PkgVsn, Deps, HexRegistry, Graph) ->
Vsn ->
digraph:add_edge(Graph, {Pkg, PkgVsn}, {Dep, Vsn}),
[{Dep, Vsn} | DepsListAcc]
end
end;
([_Dep, _DepVsn, true, _AppName | _], DepsListAcc) ->
DepsListAcc
end, [], Deps).

Loading…
Cancel
Save