From 5487be65a6f493968c0e997d93bcd5c2d87158ef Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 14 Mar 2018 11:55:38 +0200 Subject: Add --no-result option to suppress printing informational messages --- bpkg/rep-fetch.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bpkg/rep-fetch.cxx') diff --git a/bpkg/rep-fetch.cxx b/bpkg/rep-fetch.cxx index b443118..00454f9 100644 --- a/bpkg/rep-fetch.cxx +++ b/bpkg/rep-fetch.cxx @@ -794,7 +794,7 @@ namespace bpkg warn << "repository state is now broken and will be cleaned up" << info << "run 'bpkg rep-fetch' to update"; - rep_remove_clean (conf, t.database ()); + rep_remove_clean (o, conf, t.database ()); } throw; @@ -827,7 +827,7 @@ namespace bpkg // same location. // if (ua.find (r) == ua.end () || r.load ()->location.url () != rl.url ()) - rep_add (t, rl); + rep_add (o, t, rl); repos.emplace_back (r); } @@ -903,7 +903,7 @@ namespace bpkg // auto i (ua.find (r)); if (i == ua.end () || i->load ()->location.url () != rl.url ()) - r = lazy_shared_ptr (db, rep_add (t, rl)); + r = lazy_shared_ptr (db, rep_add (o, t, rl)); } repos.emplace_back (move (r)); @@ -927,7 +927,7 @@ namespace bpkg t.commit (); - if (verb) + if (verb && !o.no_result ()) text << pcount << " package(s) in " << rcount << " repository(s)"; return 0; -- cgit v1.1