aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-purge
diff options
context:
space:
mode:
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