postrm is in lintian 2.5.10.4.
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 | #!/bin/sh
set -e
# Try to purge the default lab if it looks like a lab. If the user configured
# a lab for some other location, currently we don't do anything about that.
# Arguably we should parse lintianrc and remove that lab, but I'm not sure
# that's a good idea.
if [ "$1" = "purge" ]; then
if [ -d "/var/spool/lintian/binary" ]; then
rm -rf /var/spool/lintian/binary
rm -rf /var/spool/lintian/source
rm -rf /var/spool/lintian/udeb
rm -rf /var/spool/lintian/info
fi
[ ! -d /var/spool/lintian ] || rmdir --ignore-fail-on-non-empty /var/spool/lintian
fi
|