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/pkg-purge.cxx | |
parent | acf830d519ba2b467f5eb0968b44a514b1b0e2b3 (diff) |
Add --no-result option to suppress printing informational messages
Diffstat (limited to 'bpkg/pkg-purge.cxx')
-rw-r--r-- | bpkg/pkg-purge.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bpkg/pkg-purge.cxx b/bpkg/pkg-purge.cxx index 7b58461..fa5ce01 100644 --- a/bpkg/pkg-purge.cxx +++ b/bpkg/pkg-purge.cxx @@ -202,8 +202,8 @@ namespace bpkg p->state = package_state::transient; } - if (verb) - text << (o.keep () ? "keeping archive " : "purged ") << *p; + if (verb && !o.no_result ()) + text << (o.keep () ? "keeping archive " : "purged ") << *p; return 0; } |