[Pkg-xfce-commits] r4176 - desktop/branches/experimental/exo/debian
Lionel Le Folgoc
mrpouit-guest at alioth.debian.org
Sun Jul 25 08:13:55 UTC 2010
Author: mrpouit-guest
Date: 2010-07-25 20:13:49 +0000 (Sun, 25 Jul 2010)
New Revision: 4176
Added:
desktop/branches/experimental/exo/debian/libexo-common.preinst
Modified:
desktop/branches/experimental/exo/debian/changelog
Log:
+ drop remaining references to exo-hal
- debian/libexo-common.preinst: added to delete obsolete mount.rc conffile.
Modified: desktop/branches/experimental/exo/debian/changelog
===================================================================
--- desktop/branches/experimental/exo/debian/changelog 2010-07-25 19:12:22 UTC (rev 4175)
+++ desktop/branches/experimental/exo/debian/changelog 2010-07-25 20:13:49 UTC (rev 4176)
@@ -33,7 +33,8 @@
- debian/libexo-1-0.shlibs: dropped libexo-hal
- debian/rules:
+ do not pass --enable-notifications, does not exist anymore
- + drop remaining references to exo-hal.
+ + drop remaining references to exo-hal
+ - debian/libexo-common.preinst: added to delete obsolete mount.rc conffile.
* debian/patches:
- 01_fix-treeview-gtk2.20.patch: dropped, included upstream
- series: dropped, no patch left.
Added: desktop/branches/experimental/exo/debian/libexo-common.preinst
===================================================================
--- desktop/branches/experimental/exo/debian/libexo-common.preinst (rev 0)
+++ desktop/branches/experimental/exo/debian/libexo-common.preinst 2010-07-25 20:13:49 UTC (rev 4176)
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+set -e
+
+# Remove a no-longer used conffile
+rm_conffile() {
+ local PKGNAME="$1"
+ local CONFFILE="$2"
+
+ [ -e "$CONFFILE" ] || return 0
+
+ local md5sum="$(md5sum $CONFFILE | sed -e 's/ .*//')"
+ local old_md5sum="$(dpkg-query -W -f='${Conffiles}' $PKGNAME | \
+ sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }")"
+ if [ "$md5sum" != "$old_md5sum" ]; then
+ echo "Obsolete conffile $CONFFILE has been modified by you."
+ echo "Saving as $CONFFILE.dpkg-bak ..."
+ mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
+ else
+ echo "Removing obsolete conffile $CONFFILE ..."
+ rm -f "$CONFFILE"
+ fi
+}
+
+case "$1" in
+install|upgrade)
+ if dpkg --compare-versions "$2" lt-nl "0.5.3"; then
+ rm_conffile libexo-common "/etc/xdg/xfce4/mount.rc"
+ fi
+esac
+
+#DEBHELPER#
Property changes on: desktop/branches/experimental/exo/debian/libexo-common.preinst
___________________________________________________________________
Added: svn:executable
+ *
More information about the Pkg-xfce-commits
mailing list