aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-remove
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpt-remove')
-rwxr-xr-xsrc/cpt-remove4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpt-remove b/src/cpt-remove
index ae007eb..f5a5abf 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"