r48743 - in /desktop/unstable/swell-foop/debian: changelog swell-foop.postinst

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Mon May 16 00:42:25 UTC 2016


Author: biebl
Date: Mon May 16 00:42:25 2016
New Revision: 48743

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

Added:
    desktop/unstable/swell-foop/debian/swell-foop.postinst
Modified:
    desktop/unstable/swell-foop/debian/changelog

Modified: desktop/unstable/swell-foop/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/swell-foop/debian/changelog?rev=48743&op=diff
==============================================================================
--- desktop/unstable/swell-foop/debian/changelog	[utf-8] (original)
+++ desktop/unstable/swell-foop/debian/changelog	[utf-8] Mon May 16 00:42:25 2016
@@ -1,3 +1,10 @@
+swell-foop (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>  Thu, 12 May 2016 16:37:41 +0200
+
 swell-foop (1:3.20.0-1) unstable; urgency=medium
 
   [ Pedro Beja ]

Added: desktop/unstable/swell-foop/debian/swell-foop.postinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/swell-foop/debian/swell-foop.postinst?rev=48743&op=file
==============================================================================
--- desktop/unstable/swell-foop/debian/swell-foop.postinst	(added)
+++ desktop/unstable/swell-foop/debian/swell-foop.postinst	[utf-8] Mon May 16 00:42:25 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/swell-foop.*.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