PREUN
/bin/sh
if [ $1 -eq 0 ]; then
# not upgrading => remove component cache
/bin/rm -rf /usr/lib/openoffice.org/share/uno_packages/cache/* || :
fi
POSTIN
/bin/sh
update-desktop-database /usr/share/applications &> /dev/null || :
update-mime-database /usr/share/mime &> /dev/null || :
if [ -x /usr/bin/gtk-update-icon-cache ]; then
for theme in hicolor locolor; do
if test -d "/usr/share/icons/$theme"; then
if test -f "/usr/share/icons/$theme/index.theme"; then
touch --no-create /usr/share/icons/$theme
gtk-update-icon-cache -q /usr/share/icons/$theme
fi
fi
done
fi
POSTUN
/bin/sh
update-desktop-database /usr/share/applications &> /dev/null || :
update-mime-database /usr/share/mime &> /dev/null || :
if [ -x /usr/bin/gtk-update-icon-cache ]; then
for theme in hicolor locolor; do
if test -d "/usr/share/icons/$theme"; then
if test -f "/usr/share/icons/$theme/index.theme"; then
touch --no-create /usr/share/icons/$theme
gtk-update-icon-cache -q /usr/share/icons/$theme
fi
fi
done
fi