From 82091c4496d74c1ba8e7533ce3ef5871f8b71e32 Mon Sep 17 00:00:00 2001 From: merakor Date: Wed, 3 Nov 2021 11:09:23 +0000 Subject: cpt-remove: run end-remove hook after all the removals are complete FossilOrigin-Name: b824415fd39619940f9f7c20b794134448a11039fdabaa648210b8a5d8ae964c --- src/cpt-remove | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cpt-remove') 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 -- cgit v1.2.3