xubuntu-dev team mailing list archive
-
xubuntu-dev team
-
Mailing list archive
-
Message #00782
[Branch ~xubuntu-dev/xubuntu-default-settings/trunk] Rev 226: handle config file removal
------------------------------------------------------------
revno: 226
committer: Lionel Le Folgoc <mrpouit@xxxxxxxxxx>
branch nick: xubuntu-default-settings
timestamp: Sat 2010-09-25 18:30:08 +0200
message:
handle config file removal
added:
debian/preinst
modified:
debian/postinst
debian/postrm
--
lp:xubuntu-default-settings
https://code.launchpad.net/~xubuntu-dev/xubuntu-default-settings/trunk
Your team Xubuntu Team is subscribed to branch lp:xubuntu-default-settings.
To unsubscribe from this branch go to https://code.launchpad.net/~xubuntu-dev/xubuntu-default-settings/trunk/+edit-subscription
=== modified file 'debian/postinst'
--- debian/postinst 2010-08-15 15:04:02 +0000
+++ debian/postinst 2010-09-25 16:30:08 +0000
@@ -2,6 +2,13 @@
set -e
+LASTVER="11.04.0~"
+
+if dpkg-maintscript-helper supports rm_conffile; then
+ dpkg-maintscript-helper rm_conffile \
+ /etc/xdg/xdg-xubuntu/applications/defaults.list "$LASTVER" -- "$@"
+fi
+
case "$1" in
upgrade)
if [ -x /usr/lib/gdm/gdm-set-default-session ] ; then
=== modified file 'debian/postrm'
--- debian/postrm 2010-01-27 19:26:26 +0000
+++ debian/postrm 2010-09-25 16:30:08 +0000
@@ -2,6 +2,13 @@
set -e
+LASTVER="11.04.0~"
+
+if dpkg-maintscript-helper supports rm_conffile; then
+ dpkg-maintscript-helper rm_conffile \
+ /etc/xdg/xdg-xubuntu/applications/defaults.list "$LASTVER" -- "$@"
+fi
+
case "$1" in
remove|purge)
if [ -x /usr/lib/gdm/gdm-set-default-session ] ; then
=== added file 'debian/preinst'
--- debian/preinst 1970-01-01 00:00:00 +0000
+++ debian/preinst 2010-09-25 16:30:08 +0000
@@ -0,0 +1,12 @@
+#! /bin/sh
+
+set -e
+
+LASTVER="11.04.0~"
+
+if dpkg-maintscript-helper supports rm_conffile; then
+ dpkg-maintscript-helper rm_conffile \
+ /etc/xdg/xdg-xubuntu/applications/defaults.list "$LASTVER" -- "$@"
+fi
+
+#DEBHELPER#