diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-04-19 10:43:29 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-04-19 10:43:29 -0400 |
commit | ff47ccdd0f52d889d5622ac66104a63db63aad53 (patch) | |
tree | 2101561bf89ebc89dd6ce508d54e85ad10e44ea9 | |
parent | 7d6822c37642b58d2da40081ae9b430b978539bd (diff) | |
parent | cce1ad00ba9d1bbedeeee14b3fe268b8c6dc8f2b (diff) |
Merge pull request #348 from tsloughter/ignore_optional_hex
ignore optional deps for now
-rw-r--r-- | src/rebar_prv_update.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rebar_prv_update.erl b/src/rebar_prv_update.erl index 6cdabeb..d0ff889 100644 --- a/src/rebar_prv_update.erl +++ b/src/rebar_prv_update.erl @@ -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). |