Use dh_installdeb to remove obsolete KDM conf file on upgrade

This commit is contained in:
Aurélien COUDERC
2016-11-06 23:16:53 +00:00
parent c6c462fbb1
commit c09104ccd3
5 changed files with 13 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
# Remove obsolete KDM conf file used to override default theme
rm_conffile /etc/default/kdm.d/10_desktop-base 9.0.0~ desktop-base
+3
View File
@@ -1,6 +1,9 @@
#!/bin/bash -e
set -e
# Tag to allow some debhelper commands to inject relevant code
#DEBHELPER#
if [[ "$1" = "configure" || "$1" = "abort-upgrade" || "$1" = "abort-remove" ]]; then
# Theme package alternatives
while read theme priority; do
+3
View File
@@ -1,6 +1,9 @@
#!/bin/sh -e
set -e
# Tag to allow some debhelper commands to inject relevant code
#DEBHELPER#
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then
if which update-grub2 > /dev/null ; then
update-grub2 || true
+3
View File
@@ -1,6 +1,9 @@
#!/bin/sh -e
set -e
# Tag to allow some debhelper commands to inject relevant code
#DEBHELPER#
if [ "${1}" = "upgrade" ]; then
if dpkg --compare-versions ${2} lt 0.3.11 && dpkg --compare-versions ${2} gt 0.3.5; then
update-alternatives --remove gnome-splash \
+1
View File
@@ -1,6 +1,7 @@
#!/bin/sh -e
set -e
# Tag to allow some debhelper commands to inject relevant code
#DEBHELPER#
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then