cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit a59f1dad6065314307e1a7601a178bb6389453ba
parent d1c809b28de580ca57eb060e50c95fb8c56a6bae
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Tue,  4 Feb 2020 13:07:33 +0200

kiss: Added support for pre-remove scripts. Closes #64

Diffstat:
Mkiss | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/kiss b/kiss @@ -821,6 +821,11 @@ pkg_remove() { # an incomplete package installed. trap '' INT + if [ -x "$sys_db/$1/pre-remove" ]; then + log "$1" "Running pre-remove script" + "$sys_db/$1/pre-remove" ||: + fi + while read -r file; do # The file is in '/etc' skip it. This prevents the package # manager from removing user edited configuration files.