aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-create.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-14 11:55:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-14 11:55:38 +0200
commit5487be65a6f493968c0e997d93bcd5c2d87158ef (patch)
treefaf8f7d528bf4e6c2611c894f6c3165d9fd2488c /bpkg/rep-create.cxx
parentacf830d519ba2b467f5eb0968b44a514b1b0e2b3 (diff)
Add --no-result option to suppress printing informational messages
Diffstat (limited to 'bpkg/rep-create.cxx')
-rw-r--r--bpkg/rep-create.cxx6
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 ();