prerm is in localepurge 0.7.3.2.
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 | #!/bin/sh
set -e
# Do the debhelper stuff immediately
DPKG_CONFIG_FILE=/etc/dpkg/dpkg.cfg.d/50localepurge
if [ "$1" = "remove" ]; then
# If we are being removed, then unconditionally remove the dpkg
# config file we generated.
if [ -f "$DPKG_CONFIG_FILE" ] ; then
echo "localepurge: Disabling auto-generated config file."
mv -f "$DPKG_CONFIG_FILE" "$DPKG_CONFIG_FILE.disabled"
fi
fi
|