diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-21 10:40:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-21 10:40:41 +0200 |
commit | a63b31e2469ecf5977260355dc3a6c826facbf68 (patch) | |
tree | 2999038cfb805dc6cd1d8d676b9588029c1b991a | |
parent | 0dc03d406a9958adb27ff49f568685f6e80f01ce (diff) |
Make dist diagnostics less noisy at verbosity level 1
-rw-r--r-- | build2/dist/operation.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/build2/dist/operation.cxx b/build2/dist/operation.cxx index c8cc60d..96af34a 100644 --- a/build2/dist/operation.cxx +++ b/build2/dist/operation.cxx @@ -309,9 +309,17 @@ namespace build2 // Clean up the target directory. // - if (build2::rmdir_r (td) == rmdir_status::not_empty) + if (build2::rmdir_r (td, true, 2) == rmdir_status::not_empty) fail << "unable to clean target directory " << td; + // We used to print 'dist <target>' at verbosity level 1 but that has + // proven to be just noise. Though we still want to print something + // since otherwise, once the progress line is cleared, we may end up + // with nothing printed at all. + // + if (verb == 1) + text << "dist " << dist_package; + install (dist_cmd, td); // Copy over all the files. Apply post-processing callbacks. @@ -449,8 +457,6 @@ namespace build2 if (verb >= 2) print_process (args); - else if (verb) - text << "dist -d " << d; run (cmd, args); } @@ -488,8 +494,6 @@ namespace build2 if (verb >= 2) print_process (args); - else if (verb) - text << "dist " << t; run (cmd, args); |