aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-purge
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-10-10 08:12:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-10-10 08:12:50 +0200
commit4e3faacbc3c27e1d01ca95697b34db82cdecdb9d (patch)
tree5144d4bddbb376318fcaf20dafa0c391ddce93b1 /bpkg/pkg-purge
parent803acc23f8cea3079681e9e624702e104adfd775 (diff)
Implement --replace|-r mode for pkg-fetch
Diffstat (limited to 'bpkg/pkg-purge')
-rw-r--r--bpkg/pkg-purge9
1 files changed, 9 insertions, 0 deletions
diff --git a/bpkg/pkg-purge b/bpkg/pkg-purge
index 7ec365d..4765e60 100644
--- a/bpkg/pkg-purge
+++ b/bpkg/pkg-purge
@@ -6,12 +6,21 @@
#define BPKG_PKG_PURGE
#include <bpkg/types>
+#include <bpkg/forward> // transaction, selected_package
#include <bpkg/pkg-purge-options>
namespace bpkg
{
void
pkg_purge (const pkg_purge_options&, cli::scanner& args);
+
+ // Remove package archive. If this fails, set the package state to
+ // broken, commit the transaction, and fail.
+ //
+ void
+ pkg_purge_archive (const dir_path& configuration,
+ transaction&,
+ const shared_ptr<selected_package>&);
}
#endif // BPKG_PKG_PURGE