r48715 - in /desktop/unstable/gnome-klotski/debian: changelog gnome-klotski.postinst

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Sun May 15 23:44:49 UTC 2016


Author: biebl
Date: Sun May 15 23:44:49 2016
New Revision: 48715

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=48715
Log:
Clean up old scores files. They are no longer stored system wide
but in the user's home directory.

Added:
    desktop/unstable/gnome-klotski/debian/gnome-klotski.postinst
Modified:
    desktop/unstable/gnome-klotski/debian/changelog

Modified: desktop/unstable/gnome-klotski/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-klotski/debian/changelog?rev=48715&op=diff
==============================================================================
--- desktop/unstable/gnome-klotski/debian/changelog	[utf-8] (original)
+++ desktop/unstable/gnome-klotski/debian/changelog	[utf-8] Sun May 15 23:44:49 2016
@@ -1,6 +1,8 @@
 gnome-klotski (1:3.18.2-2) UNRELEASED; urgency=medium
 
   * Drop obsolete transitional package gnotski.
+  * Clean up old scores files. They are no longer stored system wide
+    but in the user's home directory.
 
  -- Michael Biebl <biebl at debian.org>  Thu, 12 May 2016 17:21:53 +0200
 

Added: desktop/unstable/gnome-klotski/debian/gnome-klotski.postinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-klotski/debian/gnome-klotski.postinst?rev=48715&op=file
==============================================================================
--- desktop/unstable/gnome-klotski/debian/gnome-klotski.postinst	(added)
+++ desktop/unstable/gnome-klotski/debian/gnome-klotski.postinst	[utf-8] Sun May 15 23:44:49 2016
@@ -0,0 +1,13 @@
+#! /bin/sh
+set -e
+
+# Clean up old scores files. They are no longer stored system wide
+# but in the user's home directory.
+if dpkg --compare-versions "$2" lt-nl "1:3.18.2-2" ; then
+	rm -f /var/games/gnotski.*.scores
+	if [ -d /var/games ] ; then
+		rmdir --ignore-fail-on-non-empty /var/games
+	fi
+fi
+
+#DEBHELPER#




More information about the pkg-gnome-commits mailing list