preinst is in python-kiwi 1.9.22-4.
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 | #!/bin/sh -e
set -e
# handle problem caused probably by an earlier version of python-setuptools
# which was buggy (not sure)
case $1 in
install|upgrade)
for pyversion in 2.3 2.4 2.5; do
test -d /var/lib/python-support/python${pyversion}/kiwi-1.9.8.egg-info && \
rm -rf /var/lib/python-support/python${pyversion}/kiwi-1.9.8.egg-info || \
true
test -d /var/lib/python-support/python${pyversion}/kiwi && \
rm -rf /var/lib/python-support/python${pyversion}/kiwi || \
true
test -L /var/lib/python-support/python${pyversion}/gazpacho/widgets/kiwiwidgets.py && \
rm -f /var/lib/python-support/python${pyversion}/gazpacho/widgets/kiwiwidgets.py || \
true
done
;;
*)
;;
esac
|