postinst is in mate-icon-theme 1.20.0-1.
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 19 20 21 22 23 24 25 26 | #! /bin/sh
set -e
write_cache()
{
if [ -x `which gtk-update-icon-cache` ]; then
if ! gtk-update-icon-cache --force --quiet /usr/share/icons/mate; then
echo "WARNING: icon cache generation failed"
fi
fi
}
if [ "$1" = "triggered" ]; then
write_cache
exit 0
fi
write_cache
# Automatically added by dh_icons/11.1.6ubuntu1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if which update-icon-caches >/dev/null 2>&1 ; then
update-icon-caches /usr/share/icons/mate /usr/share/icons/menta
fi
fi
# End automatically added section
|