diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-26 22:00:22 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-03-02 20:04:26 +0300 |
commit | 780290277a51853b2e515b16898ca0fcfa1e9e71 (patch) | |
tree | e045dd9cc4ce2726f915897157785cb40b48756f /bpkg/rep-fetch.hxx | |
parent | 046f9282dc7778f5df326456f1630919a5607f11 (diff) |
Update rep-fetch
Diffstat (limited to 'bpkg/rep-fetch.hxx')
-rw-r--r-- | bpkg/rep-fetch.hxx | 16 |
1 files changed, 14 insertions, 2 deletions
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 <libbpkg/manifest.hxx> #include <bpkg/types.hxx> +#include <bpkg/forward.hxx> // database #include <bpkg/utility.hxx> #include <bpkg/rep-fetch-options.hxx> @@ -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<repository_location>&); } #endif // BPKG_REP_FETCH_HXX |