Skip to content

Commit

Permalink
clean up remnants after package removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuseteam committed Oct 3, 2024
1 parent c110f1f commit 847c83a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crackle
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 847c83a

Please sign in to comment.