aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-fetch.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-fetch.cxx
parentacf830d519ba2b467f5eb0968b44a514b1b0e2b3 (diff)
Add --no-result option to suppress printing informational messages
Diffstat (limited to 'bpkg/rep-fetch.cxx')
-rw-r--r--bpkg/rep-fetch.cxx8
1 files changed, 4 insertions, 4 deletions
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<repository> (db, rep_add (t, rl));
+ r = lazy_shared_ptr<repository> (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;