소스 검색

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.

불러오는 중...
취소
저장