aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-unpack
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-10-10 17:48:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-10-10 17:48:03 +0200
commitddf8c2b62fa09eb765afc0c093d0d8908f7b69e4 (patch)
tree5956e674e0cb368061a9a9eb6d8bf742f96ffa75 /bpkg/pkg-unpack
parentec931aa6550b47461e92062a703e6ef9f4c24b17 (diff)
Complete build command
Diffstat (limited to 'bpkg/pkg-unpack')
-rw-r--r--bpkg/pkg-unpack18
1 files changed, 18 insertions, 0 deletions
diff --git a/bpkg/pkg-unpack b/bpkg/pkg-unpack
index 4a37c35..a569efe 100644
--- a/bpkg/pkg-unpack
+++ b/bpkg/pkg-unpack
@@ -6,12 +6,30 @@
#define BPKG_PKG_UNPACK
#include <bpkg/types>
+#include <bpkg/forward> // transaction, selected_package
#include <bpkg/pkg-unpack-options>
namespace bpkg
{
void
pkg_unpack (const pkg_unpack_options&, cli::scanner& args);
+
+ // Unpack the package as a source directory and commit the transaction.
+ //
+ shared_ptr<selected_package>
+ pkg_unpack (const dir_path& configuration,
+ transaction&,
+ const dir_path&,
+ bool replace,
+ bool purge);
+
+ // Unpack the fetched package and commit the transaction.
+ //
+ shared_ptr<selected_package>
+ pkg_unpack (const common_options&,
+ const dir_path& configuration,
+ transaction&,
+ const string& name);
}
#endif // BPKG_PKG_UNPACK