From cae11509203061e894e6310c35ea50ae818af3a7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 18 Sep 2015 06:59:28 +0200 Subject: Implement pkg-update command --- bpkg/utility.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bpkg/utility.cxx') diff --git a/bpkg/utility.cxx b/bpkg/utility.cxx index b122545..db47476 100644 --- a/bpkg/utility.cxx +++ b/bpkg/utility.cxx @@ -151,7 +151,7 @@ namespace bpkg } void - run_b (const string& bspec, const strings& vars) + run_b (const string& bspec, bool quiet, const strings& vars) { cstrings args {"b"}; @@ -160,11 +160,11 @@ namespace bpkg // as us. // string vl; - if (verb <= 1) + if (verb <= (quiet ? 1 : 0)) args.push_back ("-q"); else if (verb == 2) args.push_back ("-v"); - else + else if (verb > 2) { vl = to_string (verb); args.push_back ("--verbose"); -- cgit v1.1