Fix {pre,post}inst so they work fine whatever version is chosen for next upload

This commit is contained in:
Aurélien COUDERC
2016-12-19 12:49:06 +00:00
parent fd4542e4ab
commit d5e95ea2e4
2 changed files with 2 additions and 2 deletions

2
debian/postinst vendored
View File

@@ -5,7 +5,7 @@ set -e
#DEBHELPER#
if [ "${1}" = "configure" ]; then
if dpkg --compare-versions ${2} lt "9.0.0"; then
if dpkg --compare-versions ${2} le "9.0.0~exp1"; then
# Try remove folder if empty, left after 9.0.0~exp1 conf suppression
# by debhelper conffile handling
OLD_KDM_DIR=/etc/default/kdm.d

2
debian/preinst vendored
View File

@@ -5,7 +5,7 @@ set -e
#DEBHELPER#
if [ "${1}" = "upgrade" ]; then
if dpkg --compare-versions ${2} lt "9.0.0"; then
if dpkg --compare-versions ${2} le "9.0.0~exp1"; then
# Remove alternatives for moreblue wallpapers we dont ship anymore
while read background; do
update-alternatives --remove \