aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-build.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/pkg-build.cxx
parentacf830d519ba2b467f5eb0968b44a514b1b0e2b3 (diff)
Add --no-result option to suppress printing informational messages
Diffstat (limited to 'bpkg/pkg-build.cxx')
-rw-r--r--bpkg/pkg-build.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/bpkg/pkg-build.cxx b/bpkg/pkg-build.cxx
index 28105d4..5b91ec3 100644
--- a/bpkg/pkg-build.cxx
+++ b/bpkg/pkg-build.cxx
@@ -1964,7 +1964,7 @@ namespace bpkg
assert (sp->state == package_state::unpacked ||
sp->state == package_state::transient);
- if (verb)
+ if (verb && !o.no_result ())
text << (sp->state == package_state::transient
? "purged "
: "disfigured ") << *sp;
@@ -2011,7 +2011,7 @@ namespace bpkg
transaction t (db.begin ());
pkg_purge (c, t, sp); // Commits the transaction.
- if (verb)
+ if (verb && !o.no_result ())
text << "purged " << *sp;
if (!p.hold_package)
@@ -2117,7 +2117,7 @@ namespace bpkg
assert (sp->state == package_state::fetched ||
sp->state == package_state::unpacked);
- if (verb)
+ if (verb && !o.no_result ())
{
const repository_location& rl (sp->repository);
@@ -2163,7 +2163,7 @@ namespace bpkg
transaction t (db.begin ());
sp = pkg_unpack (o, c, t, ap->id.name); // Commits the transaction.
- if (verb)
+ if (verb && !o.no_result ())
text << "unpacked " << *sp;
}
else
@@ -2179,7 +2179,7 @@ namespace bpkg
true, // Replace.
false); // Don't purge; commits the transaction.
- if (verb)
+ if (verb && !o.no_result ())
text << "using " << *sp << " (external)";
}
@@ -2213,7 +2213,7 @@ namespace bpkg
assert (sp->state == package_state::configured);
- if (verb)
+ if (verb && !o.no_result ())
text << "configured " << *sp;
}
@@ -2254,10 +2254,10 @@ namespace bpkg
if (verb > 1)
{
if (hp)
- text << "hold package " << sp->name;
+ text << "holding package " << sp->name;
if (hv)
- text << "hold version " << *sp;
+ text << "holding version " << *sp;
}
}
}
@@ -2312,7 +2312,7 @@ namespace bpkg
pkg_update (c, o, o.for_ (), strings (), upkgs);
- if (verb)
+ if (verb && !o.no_result ())
{
for (const pkg_command_vars& pv: upkgs)
text << "updated " << *pv.pkg;