Kaynağa Gözat

only run clean hooks once

pull/466/head
Tristan Sloughter 10 yıl önce
ebeveyn
işleme
42339f62f3
1 değiştirilmiş dosya ile 7 ekleme ve 2 silme
  1. +7
    -2
      src/rebar_prv_clean.erl

+ 7
- 2
src/rebar_prv_clean.erl Dosyayı Görüntüle

@ -67,8 +67,13 @@ format_error(Reason) ->
clean_apps(State, Providers, Apps) -> clean_apps(State, Providers, Apps) ->
lists:foreach(fun(AppInfo) -> lists:foreach(fun(AppInfo) ->
AppDir = rebar_app_info:dir(AppInfo), AppDir = rebar_app_info:dir(AppInfo),
C = rebar_config:consult(AppDir),
S = rebar_state:new(State, C, AppDir),
S = case rebar_app_info:state(AppInfo) of
undefined ->
C = rebar_config:consult(AppDir),
rebar_state:new(State, C, AppDir);
AppState ->
AppState
end,
?INFO("Cleaning out ~s...", [rebar_app_info:name(AppInfo)]), ?INFO("Cleaning out ~s...", [rebar_app_info:name(AppInfo)]),
%% Legacy hook support %% Legacy hook support

Yükleniyor…
İptal
Kaydet