tags 461401 +patch
thanks
Hello:
I'm attaching a patch for the issue. Currently it is untested, hope to test
it as soon as I have some more time.
HTH,
--
Raúl Sánchez Siles
----->Proud Debian user<-----
Linux registered user #416098
Index: kdebase/debian/kcontrol.preinst
===================================================================
--- kdebase/debian/kcontrol.preinst (revisión: 9397)
+++ kdebase/debian/kcontrol.preinst (copia de trabajo)
@@ -1,12 +1,37 @@
#! /bin/sh -e
+# Remove a no-longer used conffile
+rm_conffile() {
+ PKGNAME="$1"
+ CONFFILE="$2"
+ if [ -e "$CONFFILE" ]; then
+ md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
+ 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
+ fi
+}
+
+#4:3.5.7-4 Last deployed hotplug and hence
+# /etc/hotplug/usb/logitechmouse{,.usermap}
+#are not provided anymore. Remove them from future packages.
case "$1" in
- upgrade)
- rm -f /etc/kde3/kuriikwsfilterrc
- ;;
+ install|upgrade)
+ if [ -e /etc/kde3/kuriikwsfilterrc ]; then
+ rm -f /etc/kde3/kuriikwsfilterrc
+ fi
+ if dpkg --compare-versions "$2" le "4:3.5.7-4"; then
+ rm_conffile kcontrol "/etc/hotplug/usb/logitechmouse"
+ rm_conffile kcontrol "/etc/hotplug/usb/logitechmouse.usermap"
+ fi
- install)
;;
abort-upgrade)
Attachment:
signature.asc
Description: This is a digitally signed message part.