From f40f28b12046cc993712956497dfb9d9baa452f9 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 19 Jan 2019 21:50:43 +0300 Subject: Add support for --no-progress option --- bpkg/pkg-checkout.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpkg/pkg-checkout.cxx') diff --git a/bpkg/pkg-checkout.cxx b/bpkg/pkg-checkout.cxx index 6e0f92a..a91cb92 100644 --- a/bpkg/pkg-checkout.cxx +++ b/bpkg/pkg-checkout.cxx @@ -42,7 +42,7 @@ namespace bpkg // Print the progress indicator to attribute the possible fetching // progress. // - if (verb) + if (verb && !o.no_progress ()) text << "checking out " << package_string (ap->id.name, ap->version); @@ -194,7 +194,7 @@ namespace bpkg // At verbosity level 1 we want our (nicer) progress header but the // build system's actual progress. // - if (verb == 1) + if (verb == 1 && !o.no_progress ()) text << "distributing " << n << '/' << v; run_b (o, -- cgit v1.1