From 7e4b2dcd0e5ddd37276879e699fd84059183f5e2 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 6 Mar 2018 23:52:11 +0300 Subject: Add support for dir repository --- bpkg/pkg-unpack.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bpkg/pkg-unpack.hxx') 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 // version + #include #include // transaction, selected_package #include @@ -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 + pkg_unpack (const dir_path& configuration, + transaction&, + string name, + version, + bool replace); } #endif // BPKG_PKG_UNPACK_HXX -- cgit v1.1