diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-27 10:06:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-27 10:06:45 +0200 |
commit | c108bb6ba4090046d8c2cd21f40a8008be977311 (patch) | |
tree | 239a0b77f083c32ef4a07ff14cfa147bbe91dd6e /bpkg/pkg-purge | |
parent | 73d5768368cf64c3e3c8505503affaa05b2d0b31 (diff) |
Finish drop command implementation
Diffstat (limited to 'bpkg/pkg-purge')
-rw-r--r-- | bpkg/pkg-purge | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bpkg/pkg-purge b/bpkg/pkg-purge index 399606d..9a11288 100644 --- a/bpkg/pkg-purge +++ b/bpkg/pkg-purge @@ -14,6 +14,14 @@ namespace bpkg int pkg_purge (const pkg_purge_options&, cli::scanner& args); + // Purge the package, remove it from the database, and commit the + // transaction. If this fails, set the package state to broken. + // + void + pkg_purge (const dir_path& configuration, + transaction&, + const shared_ptr<selected_package>&); + // Remove package's filesystem objects (the source directory and, if // the archive argument is true, the package archive). If this fails, // set the package state to broken, commit the transaction, and fail. |