diff options
Diffstat (limited to 'bpkg/pkg-unpack')
-rw-r--r-- | bpkg/pkg-unpack | 18 |
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 |