postinst is in turtleart 98-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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | #!/bin/sh
set -e
if [ `which gtk-update-icon-cache` ]; then
# Update the cache if we can, if not it's fine.
gtk-update-icon-cache -qf /usr/share/icons/hicolor || true
gtk-update-icon-cache -qf /usr/share/icons/gnome || true
fi
if [ `which update-mime-database` ]; then
update-mime-database /usr/share/mime
fi
# for freedeskoptop compatible env's
if [ `which update-desktop-database` ]; then
update-desktop-database
fi
# for KDE
if [ `which kbuildsycoca` ]; then
kbuildsycoca
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
# Automatically added by dh_installmime
if [ "$1" = "configure" ] && [ -x "`which update-mime 2>/dev/null`" ]; then
update-mime
fi
# End automatically added section
# Automatically added by dh_installmime
if [ "$1" = "configure" ] && [ -x "`which update-mime-database 2>/dev/null`" ]; then
update-mime-database /usr/share/mime
fi
# End automatically added section
# Automatically added by dh_pysupport
if which update-python-modules >/dev/null 2>&1; then
update-python-modules turtleart.public
fi
# End automatically added section
|