From 5ab4bc13f618b75937dce33d497e370b212561c2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 22 Feb 2018 18:27:00 +0200 Subject: Make dist diagnostics tidier yet --- build2/rule.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'build2/rule.cxx') diff --git a/build2/rule.cxx b/build2/rule.cxx index e215846..fd6153e 100644 --- a/build2/rule.cxx +++ b/build2/rule.cxx @@ -192,7 +192,7 @@ namespace build2 { if (verb >= 2) text << "mkdir " << d; - else if (verb) + else if (verb && current_diag_noise) text << "mkdir " << t; }; @@ -270,14 +270,14 @@ namespace build2 target_state fsdir_rule:: perform_clean (action a, const target& t) { - // The reverse order of update: first delete this directory, - // then clean prerequisites (e.g., delete parent directories). + // The reverse order of update: first delete this directory, then clean + // prerequisites (e.g., delete parent directories). // - // Don't fail if we couldn't remove the directory because it - // is not empty (or is current working directory). In this - // case rmdir() will issue a warning when appropriate. + // Don't fail if we couldn't remove the directory because it is not empty + // (or is current working directory). In this case rmdir() will issue a + // warning when appropriate. // - target_state ts (rmdir (t.dir, t) + target_state ts (rmdir (t.dir, t, current_diag_noise ? 1 : 2) ? target_state::changed : target_state::unchanged); -- cgit v1.1