summaryrefslogtreecommitdiff
path: root/debian/dpkg.postrm
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2017-09-24 20:57:22 +0200
committerGuillem Jover <guillem@debian.org>2017-09-24 21:03:11 +0200
commitf310046425d3527cfad39072216373f34af9ca31 (patch)
tree8ddbbc339bf38479821a47cbb8584bbfaa4fb043 /debian/dpkg.postrm
parentb7507002eeac63c580e8ea9d8c8e1e9071733150 (diff)
downloaddpkg-f310046425d3527cfad39072216373f34af9ca31.tar.gz
debian: Remove alternative logs when purging dpkg (!?)
Diffstat (limited to 'debian/dpkg.postrm')
-rwxr-xr-xdebian/dpkg.postrm5
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/dpkg.postrm b/debian/dpkg.postrm
index 9b0234b1c..8fe5a642a 100755
--- a/debian/dpkg.postrm
+++ b/debian/dpkg.postrm
@@ -5,7 +5,10 @@ set -e
# Remove log file when dpkg is purged
remove_logfile() {
- rm -f /var/log/dpkg.log /var/log/dpkg.log.* 2>/dev/null
+ logdir=/var/log
+
+ rm -f $logdir/dpkg.log $logdir/dpkg.log.* 2>/dev/null
+ rm -f $logdir/alternatives.log $logdir/alternatives.log.* 2>/dev/null
}
case "$1" in