postinst is in gnome-mines 1:3.22.2-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 | #! /bin/sh
set -e
# Clean up old scores files. They are no longer stored system wide
# but in the user's home directory.
if dpkg --compare-versions "$2" lt-nl "1:3.20.0-2" ; then
rm -f /var/games/gnomine.*.scores
if [ -d /var/games ] ; then
rmdir --ignore-fail-on-non-empty /var/games
fi
fi
|