6 # Remove log file when dpkg is purged
8 local 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 # Remove backward compatibility symlink alias when dpkg is removed.
16 local prog
=start-stop-daemon
18 if [ -L "$DPKG_ROOT/sbin/$prog" ]; then
19 rm "$DPKG_ROOT/sbin/$prog"
23 # Version 1.22.0 stopped the systemd timer, which meant it would not run
25 fixup_systemd_timer
() {
26 if [ -d /run
/systemd
/system
]; then
27 deb-systemd-invoke restart
'dpkg-db-backup.timer' >/dev
/null || true
39 if dpkg
--compare-versions "$2" gt
1.22.0~
&&
40 dpkg
--compare-versions "$2" le
1.22.1; then
44 failed-upgrade|disappear|abort-install|abort-upgrade
)
47 echo "$0 called with unknown argument '$1'" 1>&2