prerm is in ganeti-haskell-2.16 2.16.0~rc2-1build1.
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 | #!/bin/sh
set -e
if [ "$1" = "remove" ]; then
. /usr/share/debconf/confmodule
if [ /usr/lib/ganeti/default -ef /usr/lib/ganeti/2.16 ]; then
db_version 2.0
db_fset ganeti-haskell-2.16/abort-removal seen false
db_subst ganeti-haskell-2.16/abort-removal version 2.16
db_subst ganeti-haskell-2.16/abort-removal package ganeti-haskell-2.16
db_input critical ganeti-haskell-2.16/abort-removal
db_go
db_get ganeti-haskell-2.16/abort-removal
if [ "$RET" = "true" ]; then
echo "Aborting removal on user request"
exit 1;
fi
fi
fi
|