diff options
Diffstat (limited to 'bpkg/pkg-unpack.hxx')
-rw-r--r-- | bpkg/pkg-unpack.hxx | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/bpkg/pkg-unpack.hxx b/bpkg/pkg-unpack.hxx index 373b72b..7394732 100644 --- a/bpkg/pkg-unpack.hxx +++ b/bpkg/pkg-unpack.hxx @@ -18,12 +18,12 @@ namespace bpkg int pkg_unpack (const pkg_unpack_options&, cli::scanner& args); - // Unpack the package as a source directory and commit the transaction. Can - // return a new selected package object, replacing the existing one. + // Unpack the package as a source directory and commit the transaction. + // Return the selected package object which may replace the existing one. // shared_ptr<selected_package> pkg_unpack (const common_options&, - const dir_path& configuration, + database&, transaction&, const dir_path&, bool replace, @@ -34,18 +34,22 @@ namespace bpkg // shared_ptr<selected_package> pkg_unpack (const common_options&, - const dir_path& configuration, + database&, transaction&, const package_name&, bool simulate); // Unpack the package as a source directory from a directory-based - // repository and commit the transaction. Can return a new selected package - // object, replacing the existing one. + // repository and commit the transaction. Return the selected package object + // which may replace the existing one. + // + // Note that both package and repository information configurations need to + // be passed. // shared_ptr<selected_package> pkg_unpack (const common_options&, - const dir_path& configuration, + database& pdb, + database& rdb, transaction&, package_name, version, |