From 780290277a51853b2e515b16898ca0fcfa1e9e71 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 26 Feb 2018 22:00:22 +0300 Subject: Update rep-fetch --- bpkg/rep-fetch.hxx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'bpkg/rep-fetch.hxx') diff --git a/bpkg/rep-fetch.hxx b/bpkg/rep-fetch.hxx index 0a7cacd..b26971c 100644 --- a/bpkg/rep-fetch.hxx +++ b/bpkg/rep-fetch.hxx @@ -8,6 +8,7 @@ #include #include +#include // database #include #include @@ -44,10 +45,21 @@ namespace bpkg }; rep_fetch_data - rep_fetch (const common_options& co, + rep_fetch (const common_options&, const dir_path* conf, - const repository_location& rl, + const repository_location&, bool ignore_unknown); + + // Add (or update) repository locations to the configuration and fetch + // them. On failure clean up the configuration (see rep_remove_clean() for + // details). Note that it starts a new transaction and should be called in + // session. + // + void + rep_fetch (const common_options&, + const dir_path& conf, + database&, + const vector&); } #endif // BPKG_REP_FETCH_HXX -- cgit v1.1