prerm is in python2.7-dbg 2.7.13-2+deb9u3.
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 | #! /bin/sh
set -e
case "$1" in
remove)
rm -f /usr/lib/debug/usr/bin/python2.7-gdb.py[co]
rm -f /usr/lib/debug/usr/lib/libpython2.7.so.1.0-gdb.py[co]
dpkg -L libpython2.7-dbg:amd64 \
| awk '/\.py$/ {print $0"c\n" $0"o"}' \
| xargs -r rm -f >&2
;;
upgrade)
dpkg -L libpython2.7-dbg:amd64 \
| awk '/\.py$/ {print $0"c\n" $0"o"}' \
| xargs -r rm -f >&2
;;
deconfigure)
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
|