postinst is in gparted 0.25.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 | #!/bin/sh
set -e
# versions 0.3.9-1 and 0.3.9-2 shipped /var/lib/scrollkeeper erroneously,
# overwritting the scrollkeeper database which requires a full rebuild
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" ge "0.3.9-1" && dpkg --compare-versions "$2" lt "0.3.9-3" && [ -x "`which scrollkeeper-rebuilddb 2>/dev/null`" ]; then
echo "Upgrade from broken gparted version detected, running scrollkeeper-rebuilddb..."
scrollkeeper-rebuilddb -q
fi
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
|