postrm is in tango-icon-theme-common 0.7-0ubuntu1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/bin/sh
set -e
# Automatically added by dh_iconcache
[ -d /usr/share/icons/Tango ] && touch -m /usr/share/icons/Tango || true
if [ "$1" = "remove" ] && \
[ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
[ -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
if [ "`find /usr/share/icons/Tango -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
[ "`find /usr/share/icons/Tango -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
# we shouldn't bomb out, if gtk-update-icon-cache failes,
# it's not important enough
gtk-update-icon-cache -q /usr/share/icons/Tango || true;
else
# if the icon theme directory has no subdirs, we can remove the cache
rm -f /usr/share/icons/Tango/icon-theme.cache || true;
fi
fi
# End automatically added section
|