aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkiss4
1 files changed, 4 insertions, 0 deletions
diff --git a/kiss b/kiss
index ebfbc8c..c4d6d34 100755
--- a/kiss
+++ b/kiss
@@ -1046,6 +1046,8 @@ pkg_remove() {
"$sys_db/$1/pre-remove" ||:
fi
+ run_hook pre-remove "$1" "/var/db/kiss/installed/$1"
+
while read -r file; do
# The file is in '/etc' skip it. This prevents the package
# manager from removing user edited configuration files.
@@ -1062,6 +1064,8 @@ pkg_remove() {
# we no longer need to block 'Ctrl+C'.
trap pkg_clean EXIT INT
+ run_hook post-remove "$1" "$KISS_ROOT/"
+
log "$1" "Removed successfully"
}