preinst is in xen-tools 4.6.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 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 41 | #!/bin/sh
set -e
#
# Skip, if we are not in "configure" state
#
if [ "$1" != "upgrade" ]; then
exit 0
fi
#
# 2.x -> 3.x
#
if [ -L "/usr/lib/xen-tools/dapper.d" ]; then
rm /usr/lib/xen-tools/dapper.d
fi
if [ -L "/usr/lib/xen-tools/edgy.d" ]; then
rm /usr/lib/xen-tools/edgy.d
fi
if [ -d "/usr/lib/xen-tools/ubuntu.d" ]; then
rm -r /usr/lib/xen-tools/ubuntu.d
fi
#
# 4.1 -> 4.2
#
if [ -L "/usr/lib/xen-tools/intrepid.d" ]; then
rm /usr/lib/xen-tools/intrepid.d
fi
if [ -L "/usr/lib/xen-tools/karmic.d" ]; then
rm /usr/lib/xen-tools/karmic.d
fi
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/xen-tools 4.6.1-1~ -- "$@"
# End automatically added section
exit 0
|