Fix {pre,post}inst so they work fine whatever version is chosen for next upload
This commit is contained in:
2
debian/postinst
vendored
2
debian/postinst
vendored
@@ -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
2
debian/preinst
vendored
@@ -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 don’t ship anymore
|
||||
while read background; do
|
||||
update-alternatives --remove \
|
||||
|
||||
Reference in New Issue
Block a user