mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-20 21:43:19 -07:00
* usr/bin/purge-old-kernels:
- Use dpkg first when APT is broken #16 - https://github.com/dustinkirkland/byobu/pull/16
This commit is contained in:
parent
9aa9bb8aff
commit
c88e803c97
2 changed files with 11 additions and 0 deletions
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,8 +1,14 @@
|
||||||
byobu (5.114) unreleased; urgency=medium
|
byobu (5.114) unreleased; urgency=medium
|
||||||
|
|
||||||
|
[ Dustin Kirkland ]
|
||||||
* usr/bin/purge-old-kernels:
|
* usr/bin/purge-old-kernels:
|
||||||
- use apt-get, rather than apt, for compatibility with trusty/precise apt
|
- use apt-get, rather than apt, for compatibility with trusty/precise apt
|
||||||
|
|
||||||
|
[ @alexm ]
|
||||||
|
* usr/bin/purge-old-kernels:
|
||||||
|
- Use dpkg first when APT is broken #16
|
||||||
|
- https://github.com/dustinkirkland/byobu/pull/16
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 07 Dec 2016 08:18:12 -0600
|
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 07 Dec 2016 08:18:12 -0600
|
||||||
|
|
||||||
byobu (5.113-0ubuntu1) zesty; urgency=medium
|
byobu (5.113-0ubuntu1) zesty; urgency=medium
|
||||||
|
|
|
@ -66,5 +66,10 @@ if [ -z "$PURGE" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use apt-get, rather than apt, for compatibility with precise/trusty
|
# Use apt-get, rather than apt, for compatibility with precise/trusty
|
||||||
|
if ! apt-get install --fix-broken --dry-run >/dev/null 2>&1; then
|
||||||
|
echo "APT is broken, trying with dpkg"
|
||||||
|
dpkg --purge $PURGE
|
||||||
|
apt-get install --fix-broken
|
||||||
|
fi
|
||||||
apt-get $APT_OPTS remove --purge $PURGE
|
apt-get $APT_OPTS remove --purge $PURGE
|
||||||
apt-get $APT_OPTS autoremove --purge
|
apt-get $APT_OPTS autoremove --purge
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue