diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-03-06 23:52:11 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-03-08 13:35:44 +0300 |
commit | 7e4b2dcd0e5ddd37276879e699fd84059183f5e2 (patch) | |
tree | c6edcaf646a28f7a993b348401c2f330d99cba10 /bpkg/pkg-unpack.hxx | |
parent | ccd8c8dadfcfd9181772b3061e7b075d88942505 (diff) |
Add support for dir repository
Diffstat (limited to 'bpkg/pkg-unpack.hxx')
-rw-r--r-- | bpkg/pkg-unpack.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bpkg/pkg-unpack.hxx b/bpkg/pkg-unpack.hxx index 39b4e83..9fdc848 100644 --- a/bpkg/pkg-unpack.hxx +++ b/bpkg/pkg-unpack.hxx @@ -5,6 +5,8 @@ #ifndef BPKG_PKG_UNPACK_HXX #define BPKG_PKG_UNPACK_HXX +#include <libbpkg/manifest.hxx> // version + #include <bpkg/types.hxx> #include <bpkg/forward.hxx> // transaction, selected_package #include <bpkg/utility.hxx> @@ -32,6 +34,16 @@ namespace bpkg const dir_path& configuration, transaction&, const string& name); + + // Unpack the package as a source directory from a directory-based + // repository and commit the transaction. + // + shared_ptr<selected_package> + pkg_unpack (const dir_path& configuration, + transaction&, + string name, + version, + bool replace); } #endif // BPKG_PKG_UNPACK_HXX |