diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-14 11:55:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-14 11:55:38 +0200 |
commit | 5487be65a6f493968c0e997d93bcd5c2d87158ef (patch) | |
tree | faf8f7d528bf4e6c2611c894f6c3165d9fd2488c /bpkg/rep-create.cxx | |
parent | acf830d519ba2b467f5eb0968b44a514b1b0e2b3 (diff) |
Add --no-result option to suppress printing informational messages
Diffstat (limited to 'bpkg/rep-create.cxx')
-rw-r--r-- | bpkg/rep-create.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bpkg/rep-create.cxx b/bpkg/rep-create.cxx index 56f2f87..ba2eb73 100644 --- a/bpkg/rep-create.cxx +++ b/bpkg/rep-create.cxx @@ -202,8 +202,8 @@ namespace bpkg { package_manifest& m (p.second.manifest); - if (verb) - text << "adding " << m.name << " " << m.version; + if (verb && !o.no_result ()) + text << "added " << m.name << " " << m.version; manifests.emplace_back (move (m)); } @@ -267,7 +267,7 @@ namespace bpkg fail << "unable to write to " << p << ": " << e; } - if (verb) + if (verb && !o.no_result ()) { d.complete (); d.normalize (); |