From 9aa9bb8aff0d7302eea057a421e876ffcc6274b5 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sat, 10 Dec 2016 09:38:08 -0600 Subject: [PATCH] * usr/bin/purge-old-kernels: - use apt-get, rather than apt, for compatibility with trusty/precise apt --- debian/changelog | 3 ++- usr/bin/purge-old-kernels | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 022f60cb..feac151e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ byobu (5.114) unreleased; urgency=medium - * UNRELEASED + * usr/bin/purge-old-kernels: + - use apt-get, rather than apt, for compatibility with trusty/precise apt -- Dustin Kirkland Wed, 07 Dec 2016 08:18:12 -0600 diff --git a/usr/bin/purge-old-kernels b/usr/bin/purge-old-kernels index 8fd6c271..2d999c58 100755 --- a/usr/bin/purge-old-kernels +++ b/usr/bin/purge-old-kernels @@ -65,5 +65,6 @@ if [ -z "$PURGE" ]; then exit 0 fi -apt $APT_OPTS remove --purge $PURGE -apt $APT_OPTS autoremove --purge +# Use apt-get, rather than apt, for compatibility with precise/trusty +apt-get $APT_OPTS remove --purge $PURGE +apt-get $APT_OPTS autoremove --purge