summaryrefslogtreecommitdiff
path: root/debian/apt.postinst
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-07-23 20:09:05 +0200
committerMichael Vogt <mvo@debian.org>2013-07-23 20:09:05 +0200
commitd3213963281a4f910b78679dad35bf59ddbd721c (patch)
tree92af184f78f043eb5e67daedca27aedfdb1c1488 /debian/apt.postinst
parentc1f8f8c0b070b52e7d85ed932418bc3497cc7990 (diff)
debian/apt.postinst:
* debian/apt.postinst: - run /etc/kernel/postinst.d/apt-auto-removal once on upgrade to ensure that the correct auto-removal list is generated (closes: #717615)
Diffstat (limited to 'debian/apt.postinst')
-rw-r--r--debian/apt.postinst4
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/apt.postinst b/debian/apt.postinst
index bd814e1af..9ff1e031c 100644
--- a/debian/apt.postinst
+++ b/debian/apt.postinst
@@ -28,6 +28,10 @@ case "$1" in
chmod -f 0640 /var/log/apt/term.log* || true
fi
+ # create kernel autoremoval blacklist on update
+ if dpkg --compare-versions "$2" lt-nl 0.9.9.3; then
+ /etc/kernel/postinst.d/apt-auto-removal
+ fi
;;
abort-upgrade|abort-remove|abort-deconfigure)