Files
Aaru/pkg/debian/postrm

35 lines
752 B
Bash
Executable File

#!/bin/sh
set -e
case "$1" in
remove|purge|upgrade|disappear)
# Update icon cache
if which gtk-update-icon-cache >/dev/null 2>&1; then
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
fi
# Update MIME database
if which update-mime-database >/dev/null 2>&1; then
update-mime-database /usr/share/mime || true
fi
# Update desktop database
if which update-desktop-database >/dev/null 2>&1; then
update-desktop-database -q || true
fi
;;
failed-upgrade|abort-install|abort-upgrade)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0