From 7cbea6d908fddc48357a88d6edf30451c7d2b487 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Oct 2021 17:17:09 +0200 Subject: Add --progress common option --- bpkg/pkg-checkout.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bpkg/pkg-checkout.cxx') diff --git a/bpkg/pkg-checkout.cxx b/bpkg/pkg-checkout.cxx index 49fc89f..61561e2 100644 --- a/bpkg/pkg-checkout.cxx +++ b/bpkg/pkg-checkout.cxx @@ -44,7 +44,7 @@ namespace bpkg // Print the progress indicator to attribute the possible fetching // progress. // - if (verb && !o.no_progress ()) + if ((verb && !o.no_progress ()) || o.progress ()) text << "checking out " << package_string (ap->id.name, ap->version) << db; @@ -297,10 +297,10 @@ namespace bpkg // of our dependencies. // - // At verbosity level 1 we want our (nicer) progress header but the - // build system's actual progress. + // If the verbosity level is less than 2, then we want our (nicer) + // progress header but the build system's actual progress. // - if (verb == 1 && !o.no_progress ()) + if ((verb == 1 && !o.no_progress ()) || (verb == 0 && o.progress ())) text << "distributing " << n << '/' << v << pdb; run_b (o, -- cgit v1.1