diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-10 09:30:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-10 09:30:37 +0200 |
commit | ec931aa6550b47461e92062a703e6ef9f4c24b17 (patch) | |
tree | 711af30ebf02f7484dcc931d6b50fc148cd72983 /bpkg/pkg-purge | |
parent | 4e3faacbc3c27e1d01ca95697b34db82cdecdb9d (diff) |
Implement --replace|-r mode for pkg-unpack; improve in pkg-fetch
Diffstat (limited to 'bpkg/pkg-purge')
-rw-r--r-- | bpkg/pkg-purge | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bpkg/pkg-purge b/bpkg/pkg-purge index 4765e60..0c88e19 100644 --- a/bpkg/pkg-purge +++ b/bpkg/pkg-purge @@ -14,13 +14,15 @@ 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. + // 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. // void - pkg_purge_archive (const dir_path& configuration, - transaction&, - const shared_ptr<selected_package>&); + pkg_purge_fs (const dir_path& configuration, + transaction&, + const shared_ptr<selected_package>&, + bool archive = true); } #endif // BPKG_PKG_PURGE |