Преглед на файлове

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 години
родител
ревизия
0309f300ea
променени са 1 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. +4
    -3
      src/rebar_compiler_dag.erl

+ 4
- 3
src/rebar_compiler_dag.erl Целия файл

@ -267,9 +267,10 @@ prepopulate_deps(G, Compiler, InDirs, Source, DepOpts, Status) ->
[digraph:add_vertex(G, Src, 0) || Src <- AbsIncls,
digraph:vertex(G, Src) =:= false],
%% 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
[digraph:add_edge(G, Source, Incl) || Incl <- AbsIncls],
ok.

Зареждане…
Отказ
Запис