rev 4858 - trunk/packages/kdegames/debian

Josh Metzler jdmetz-guest at alioth.debian.org
Tue Nov 7 18:45:37 CET 2006


Author: jdmetz-guest
Date: 2006-11-07 18:45:37 +0100 (Tue, 07 Nov 2006)
New Revision: 4858

Added:
   trunk/packages/kdegames/debian/katomic.preinst
Modified:
   trunk/packages/kdegames/debian/changelog
Log:
Implement fixes for bug #396563.  Please review the new katomic.preinst that mucks in users' katomicrc.

Modified: trunk/packages/kdegames/debian/changelog
===================================================================
--- trunk/packages/kdegames/debian/changelog	2006-11-06 10:39:21 UTC (rev 4857)
+++ trunk/packages/kdegames/debian/changelog	2006-11-07 17:45:37 UTC (rev 4858)
@@ -1,9 +1,17 @@
 kdegames (4:3.5.5-2) UNRELEASED; urgency=low
 
+  [ Daniel Schepler ]
   * Fix override disparity in debian/control.
 
- -- Daniel Schepler <schepler at debian.org>  Sun,  8 Oct 2006 13:49:04 +0200
+  [ Josh Metzler ]
+  * Add 10_fix_highscores_display.diff to read the correct high scores config
+    key as part of a fix for #396563.
+  * Add a katomic.preinst that will update all users' katomicrc files to have
+    the new config keys for high scores, so that high scores are preserved
+    when upgrading from a pre 3.5 version of katomic.  Closes: #396563.
 
+ -- Josh Metzler <josh at metzlers.org>  Tue,  7 Nov 2006 12:41:33 -0500
+
 kdegames (4:3.5.5-1) unstable; urgency=low
 
   * New upstream release.

Added: trunk/packages/kdegames/debian/katomic.preinst
===================================================================
--- trunk/packages/kdegames/debian/katomic.preinst	2006-11-06 10:39:21 UTC (rev 4857)
+++ trunk/packages/kdegames/debian/katomic.preinst	2006-11-07 17:45:37 UTC (rev 4858)
@@ -0,0 +1,29 @@
+#! /bin/sh -e
+
+case "$1" in
+
+    upgrade)
+	if dpkg --compare-versions "$2" lt "4:3.5.0-0"; then
+	    	for U in /home/*
+		do
+			F="$U/.kde/share/config/katomicrc"
+			if [ -f "$F" ]; then
+				sed -i s/High\ Scores/Highscores/ "$F"
+			fi
+		done
+	fi
+    ;;
+
+    install|abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+
+esac
+
+#DEBHELPER#
+
+exit 0




More information about the pkg-kde-commits mailing list