r48719 - in /desktop/unstable/gnome-mahjongg/debian: changelog gnome-mahjongg.postinst

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Sun May 15 23:53:41 UTC 2016


Author: biebl
Date: Sun May 15 23:53:41 2016
New Revision: 48719

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

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

Modified: desktop/unstable/gnome-mahjongg/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-mahjongg/debian/changelog?rev=48719&op=diff
==============================================================================
--- desktop/unstable/gnome-mahjongg/debian/changelog	[utf-8] (original)
+++ desktop/unstable/gnome-mahjongg/debian/changelog	[utf-8] Sun May 15 23:53:41 2016
@@ -1,6 +1,8 @@
 gnome-mahjongg (1:3.20.0-2) UNRELEASED; urgency=medium
 
   * Drop obsolete transitional package mahjongg.
+  * 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>  Sun, 15 May 2016 16:00:52 +0200
 

Added: desktop/unstable/gnome-mahjongg/debian/gnome-mahjongg.postinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-mahjongg/debian/gnome-mahjongg.postinst?rev=48719&op=file
==============================================================================
--- desktop/unstable/gnome-mahjongg/debian/gnome-mahjongg.postinst	(added)
+++ desktop/unstable/gnome-mahjongg/debian/gnome-mahjongg.postinst	[utf-8] Sun May 15 23:53:41 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/mahjongg.*.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