Dpkg::Vendor::Debian: Sync builtin pie arches with gcc-13
[dpkg.git] / debian / dpkg.postrm
blob4133419552e378f84e212e90aad57e8ddc2f842a
1 #!/bin/sh
2 # See deb-postrm(5).
4 set -e
6 # Remove log file when dpkg is purged
7 remove_logfile() {
8 logdir=$DPKG_ROOT/var/log
10 rm -f "$logdir"/dpkg.log "$logdir"/dpkg.log.* 2>/dev/null
11 rm -f "$logdir"/alternatives.log "$logdir"/alternatives.log.* 2>/dev/null
14 case "$1" in
15 remove)
17 purge)
18 remove_logfile
20 upgrade)
22 failed-upgrade|disappear|abort-install|abort-upgrade)
25 echo "$0 called with unknown argument '$1'" 1>&2
26 exit 1
28 esac
30 #DEBHELPER#
32 exit 0