浏览代码

only run clean hooks once

pull/466/head
Tristan Sloughter 10 年前
父节点
当前提交
42339f62f3
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. +7
    -2
      src/rebar_prv_clean.erl

+ 7
- 2
src/rebar_prv_clean.erl 查看文件

@ -67,8 +67,13 @@ format_error(Reason) ->
clean_apps(State, Providers, Apps) ->
lists:foreach(fun(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)]),
%% Legacy hook support

正在加载...
取消
保存