preinst is in libglade2-dev 1:2.6.4-1ubuntu1.
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 | #!/bin/sh
set -e
action="$1"
# remove symlink in symlink created in upgrades on systems which had a version
# prior to 1:2.6.0-2
if [ upgrade = "$action" ]; then
version="$2"
if dpkg --compare-versions 1:2.6.0-4 ge-nl "$version"; then
rm -f /usr/share/doc/libglade2-dev/html/libglade
fi
fi
|