aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-checkout.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-29 14:02:18 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2018-04-19 19:39:55 +0300
commit4c7b3f9500c668aa99328e419f6d09c722814f97 (patch)
treed651e03898965e956dabbff72b184508d458b271 /bpkg/pkg-checkout.cxx
parent7251109c82b16c30410803ef375fe1012445873d (diff)
Improve pkg-checkout progress diagnostics at verbosity level 1
Diffstat (limited to 'bpkg/pkg-checkout.cxx')
-rw-r--r--bpkg/pkg-checkout.cxx19
1 files changed, 14 insertions, 5 deletions
diff --git a/bpkg/pkg-checkout.cxx b/bpkg/pkg-checkout.cxx
index c53e545..faa1099 100644
--- a/bpkg/pkg-checkout.cxx
+++ b/bpkg/pkg-checkout.cxx
@@ -156,18 +156,27 @@ namespace bpkg
// Distribute.
//
- // Note that on failure the package stays in the existing (working) state.
+ // Note that on failure the package stays in the existing (working)
+ // state.
//
// At first it may seem we have a problem: an existing package with the
// same name will cause a conflict since we now have multiple package
- // locations for the same package name. We are luck, however: subprojects
- // are only loaded if used and since we don't support dependency cycles,
- // the existing project should never be loaded by any of our dependencies.
+ // locations for the same package name. We are lucky, however:
+ // subprojects are only loaded if used and since we don't support
+ // dependency cycles, the existing project should never be loaded by any
+ // of our dependencies.
//
+
+ // At verbosity level 1 we want our (nicer) progress header but the
+ // build system's actual progress.
+ //
+ if (verb == 1)
+ text << "distributing " << n << '/' << v;
+
run_b (o,
c,
bspec,
- false /* quiet */,
+ verb_b::progress,
strings ({"config.dist.root=" + c.representation ()}));
mc = sha256 (o, d / manifest_file);