From 847c83a0a3778aadbaaeb57dfd36c20f5b592b6f Mon Sep 17 00:00:00 2001 From: Fuseteam Date: Thu, 3 Oct 2024 13:20:44 -0300 Subject: [PATCH] clean up remnants after package removal --- crackle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crackle b/crackle index c996302..eac0b40 100755 --- a/crackle +++ b/crackle @@ -327,6 +327,10 @@ APT_CACHE="apt-cache -o Dir::Cache=$APTCACHE -o Dir::State=$APTSTATE -o Dir::Etc [ -d $PKG_PATH/$pkg ] && say "removing $pkg"; [[ -d "$PKG_PATH/$pkg/sbin" || -d "$PKG_PATH/$pkg/usr/sbin" || -f "$PKG_PATH/$pkg/$pkg.sudo" ]] && sbin="true"; [ -d $PKG_PATH/$pkg ] && rm -r $PKG_PATH/$pkg; + if [ -f "${PKG_PREFIX}/lib/crackle/${pkgname}" ]; then + source "${PKG_PREFIX}/lib/crackle/${pkgname}"; + remove_${pkgname}; + fi [ "$sbin" = "true" ] && sudo_run "find $SUDO_BIN -xtype l -exec rm {} +"; [ "$sbin" = "true" ] && sudo_run "find $SUDO_CONFIG -xtype l -exec rm {} +"; [ "$sbin" = "true" ] && sudo -k;