Allow the previous version to upgrade correctly

This commit is contained in:
Serge Schneider 2015-05-14 18:06:26 +01:00
parent 3a5d75340a
commit 5aadc27040
3 changed files with 52 additions and 0 deletions

13
debian/changelog vendored
View File

@ -1,3 +1,16 @@
raspi-config (20150131-3) unstable; urgency=low
* Add prerm failed-upgrade to allow upgrades
-- Serge Schneider <serge@raspberrypi.org> Wed, 06 May 2015 15:33:35 +0100
raspi-config (20150131-2) unstable; urgency=low
* Prevent postinstall from trying to stop /etc/init.d/raspi-config
dh_installinit --noscripts
-- Serge Schneider <serge@raspberrypi.org> Wed, 06 May 2015 14:23:57 +0100
raspi-config (20150131-1) unstable; urgency=low
* Add Pi2 overclock preset

36
debian/raspi-config.prerm vendored Normal file
View File

@ -0,0 +1,36 @@
#! /bin/sh
# prerm script for raspi-config
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <prerm> `purge'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <new-prerm> `abort-install'
# * <new-prerm> `abort-install' <old-version>
# * <new-prerm> `abort-upgrade' <old-version>
# * <disappearer's-prerm> `disappear' <overwriter> <new-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
purge|remove|upgrade)
;;
failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0

3
debian/rules vendored
View File

@ -9,5 +9,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
override_dh_installinit:
dh_installinit --noscripts
%:
dh $@