Browse Source

Fix invalid DAG clean-up deletion code

THat was code written on a bus and rarely executed, but still the
function called didn't exist for real.
pull/2236/head
Fred Hebert 5 years ago
parent
commit
0309f300ea
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/rebar_compiler_dag.erl

+ 4
- 3
src/rebar_compiler_dag.erl View File

@ -267,9 +267,10 @@ prepopulate_deps(G, Compiler, InDirs, Source, DepOpts, Status) ->
[digraph:add_vertex(G, Src, 0) || Src <- AbsIncls, [digraph:add_vertex(G, Src, 0) || Src <- AbsIncls,
digraph:vertex(G, Src) =:= false], digraph:vertex(G, Src) =:= false],
%% drop edges from deps that aren't included! %% drop edges from deps that aren't included!
[digraph:del_edge(G, Source, Path) || Status == old,
Path <- digraph:out_edges(G, Source),
not lists:member(Path, AbsIncls)],
[digraph:del_edge(G, Edge) || Status == old,
Edge <- digraph:out_edges(G, Source),
{_, _Src, Path, _} <- [digraph:edge(G, Edge)],
not lists:member(Path, AbsIncls)],
%% Add the rest %% Add the rest
[digraph:add_edge(G, Source, Incl) || Incl <- AbsIncls], [digraph:add_edge(G, Source, Incl) || Incl <- AbsIncls],
ok. ok.

Loading…
Cancel
Save