r48723 - in /desktop/unstable/gnome-mines/debian: changelog gnome-mines.postinst

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Mon May 16 00:05:07 UTC 2016


Author: biebl
Date: Mon May 16 00:05:07 2016
New Revision: 48723

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

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

Modified: desktop/unstable/gnome-mines/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-mines/debian/changelog?rev=48723&op=diff
==============================================================================
--- desktop/unstable/gnome-mines/debian/changelog	[utf-8] (original)
+++ desktop/unstable/gnome-mines/debian/changelog	[utf-8] Mon May 16 00:05:07 2016
@@ -1,3 +1,10 @@
+gnome-mines (1:3.20.0-2) UNRELEASED; urgency=medium
+
+  * 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>  Mon, 16 May 2016 02:02:16 +0200
+
 gnome-mines (1:3.20.0-1) unstable; urgency=medium
 
   [ Pedro Beja ]

Added: desktop/unstable/gnome-mines/debian/gnome-mines.postinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-mines/debian/gnome-mines.postinst?rev=48723&op=file
==============================================================================
--- desktop/unstable/gnome-mines/debian/gnome-mines.postinst	(added)
+++ desktop/unstable/gnome-mines/debian/gnome-mines.postinst	[utf-8] Mon May 16 00:05:07 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.20.0-2" ; then
+	rm -f /var/games/gnomine.*.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