diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-18 06:59:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-18 06:59:28 +0200 |
commit | cae11509203061e894e6310c35ea50ae818af3a7 (patch) | |
tree | e9d38297725b9d8ef4442366432cdee8f9ccf28c /bpkg/utility.cxx | |
parent | b18e54a088e84ed31f320d69b904af3f999adb2b (diff) |
Implement pkg-update command
Diffstat (limited to 'bpkg/utility.cxx')
-rw-r--r-- | bpkg/utility.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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"); |