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 27 28 29 30 31 32 33 34 35 36 37
|
#!/bin/sh
set -e
log_debug() {
echo "Debug: piuparts exception for package $PIUPARTS_OBJECTS"
}
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
;;
ibod|\
isdnactivecards|\
isdneurofile|\
isdnlog|\
isdnutils|\
isdnutils-xtools|\
isdnvbox|\
isdnvboxserver|\
INVALID)
case "$PIUPARTS_DISTRIBUTION" in
lenny|squeeze)
#431855: isdnutils-base fails to purge with "There are still files in /etc/isdn/ that you may want to remove manually."
log_debug
rm -fv /etc/isdn/*
esac
;;
esac
|