diff options
author | merakor <cem@ckyln.com> | 2021-11-03 11:09:23 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-11-03 11:09:23 +0000 |
commit | 82091c4496d74c1ba8e7533ce3ef5871f8b71e32 (patch) | |
tree | 062bd0f9ede6e3c63c4e16e6e21ae72740bd2613 /src | |
parent | 7eb5c092aa24a1ee58e55b86fde907041dd2a3c5 (diff) | |
download | cpt-82091c4496d74c1ba8e7533ce3ef5871f8b71e32.tar.gz |
cpt-remove: run end-remove hook after all the removals are complete
FossilOrigin-Name: b824415fd39619940f9f7c20b794134448a11039fdabaa648210b8a5d8ae964c
Diffstat (limited to 'src')
-rwxr-xr-x | src/cpt-remove | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpt-remove b/src/cpt-remove index cce3739..5432c86 100755 --- a/src/cpt-remove +++ b/src/cpt-remove @@ -20,3 +20,7 @@ if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi create_cache pkg_order "$@" for pkg in $redro; do pkg_remove "$pkg" "${CPT_FORCE:-check}"; done + +# After all the removals are finished, run an end-remove hook. There may +# be some things that we may want to run, but not per package. +run_hook end-remove "" "$CPT_ROOT" root |