瀏覽代碼

Do not print entering/leaving message if skip_dir

pull/3/head
Tuncer Ayaz 13 年之前
父節點
當前提交
4f6ea2fd11
共有 1 個檔案被更改,包括 13 行新增6 行删除
  1. +13
    -6
      src/rebar_core.erl

+ 13
- 6
src/rebar_core.erl 查看文件

@ -104,10 +104,17 @@ process_dir(Dir, ParentConfig, Command, DirSet) ->
true ->
AbsDir = filename:absname(Dir),
case processing_base_dir(Dir) of
false ->
?CONSOLE("==> Entering directory `~s'\n", [AbsDir]);
ShouldPrintDir = case {is_skip_dir(Dir), processing_base_dir(Dir)} of
{false, false} ->
true;
_ ->
false
end,
case ShouldPrintDir of
true ->
?CONSOLE("==> Entering directory `~s'\n", [AbsDir]);
_ ->
ok
end,
@ -128,10 +135,10 @@ process_dir(Dir, ParentConfig, Command, DirSet) ->
Res = maybe_process_dir(ModuleSet, Config, CurrentCodePath,
Dir, Command, DirSet),
case processing_base_dir(Dir) of
false ->
?CONSOLE("==> Leaving directory `~s'\n", [AbsDir]);
case ShouldPrintDir of
true ->
?CONSOLE("==> Leaving directory `~s'\n", [AbsDir]);
false ->
ok
end,

Loading…
取消
儲存