aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-fetch.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/pkg-fetch.hxx')
-rw-r--r--bpkg/pkg-fetch.hxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/bpkg/pkg-fetch.hxx b/bpkg/pkg-fetch.hxx
index 54df466..bdb7f77 100644
--- a/bpkg/pkg-fetch.hxx
+++ b/bpkg/pkg-fetch.hxx
@@ -5,7 +5,8 @@
#ifndef BPKG_PKG_FETCH_HXX
#define BPKG_PKG_FETCH_HXX
-#include <libbpkg/manifest.hxx> // version
+#include <libbpkg/manifest.hxx> // version
+#include <libbpkg/package-name.hxx>
#include <bpkg/types.hxx>
#include <bpkg/forward.hxx> // transaction, selected_package
@@ -18,7 +19,8 @@ namespace bpkg
int
pkg_fetch (const pkg_fetch_options&, cli::scanner& args);
- // Fetch the package as an archive file and commit the transaction.
+ // Fetch the package as an archive file and commit the transaction. Can
+ // return a new selected package object, replacing the existing one.
//
shared_ptr<selected_package>
pkg_fetch (const common_options&,
@@ -30,13 +32,14 @@ namespace bpkg
bool simulate);
// Fetch the package from an archive-based repository and commit the
- // transaction.
+ // transaction. Can return a new selected package object, replacing the
+ // existing one.
//
shared_ptr<selected_package>
pkg_fetch (const common_options&,
const dir_path& configuration,
transaction&,
- string name,
+ package_name,
version,
bool replace,
bool simulate);