From ddf8c2b62fa09eb765afc0c093d0d8908f7b69e4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 10 Oct 2015 17:48:03 +0200 Subject: Complete build command --- bpkg/pkg-fetch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'bpkg/pkg-fetch') diff --git a/bpkg/pkg-fetch b/bpkg/pkg-fetch index 1f25c82..7cfd214 100644 --- a/bpkg/pkg-fetch +++ b/bpkg/pkg-fetch @@ -5,13 +5,36 @@ #ifndef BPKG_PKG_FETCH #define BPKG_PKG_FETCH +#include // version + #include +#include // transaction, selected_package #include namespace bpkg { void pkg_fetch (const pkg_fetch_options&, cli::scanner& args); + + // Fetch the package as an archive file and commit the transaction. + // + shared_ptr + pkg_fetch (const common_options&, + const dir_path& configuration, + transaction&, + path archive, + bool replace, + bool purge); + + // Fetch the package from a repository and commit the transaction. + // + shared_ptr + pkg_fetch (const common_options&, + const dir_path& configuration, + transaction&, + string name, + version, + bool replace); } #endif // BPKG_PKG_FETCH -- cgit v1.1