/etc/piuparts/scripts/post_remove_exceptions is in piuparts 0.84.
This file is owned by root:root, with mode 0o755.
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 | #!/bin/sh
set -e
log_debug() {
echo "Debug: piuparts exception for package $PIUPARTS_OBJECTS"
}
# cleanup from pre_remove_exceptions
rm -fv /etc/apt/apt.conf.d/piuparts-allow-remove-essential
case ${PIUPARTS_OBJECTS%%=*} in
asclassic)
case "$PIUPARTS_DISTRIBUTION" in
lenny)
# purging works in lenny
;;
*)
log_debug
# postrm purge unconditionally removes some files that may be gone already
sed -i 's/rm system.steprc menudefs.hook/rm -f system.steprc menudefs.hook/' /var/lib/dpkg/info/asclassic.postrm
;;
esac
;;
esac
|