r48746 - in /desktop/unstable/tali/debian: changelog rules tali.postinst tali.postrm

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Mon May 16 00:48:01 UTC 2016


Author: biebl
Date: Mon May 16 00:48:01 2016
New Revision: 48746

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

Removed:
    desktop/unstable/tali/debian/tali.postrm
Modified:
    desktop/unstable/tali/debian/changelog
    desktop/unstable/tali/debian/rules
    desktop/unstable/tali/debian/tali.postinst

Modified: desktop/unstable/tali/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/tali/debian/changelog?rev=48746&op=diff
==============================================================================
--- desktop/unstable/tali/debian/changelog	[utf-8] (original)
+++ desktop/unstable/tali/debian/changelog	[utf-8] Mon May 16 00:48:01 2016
@@ -1,3 +1,10 @@
+tali (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:43:38 +0200
+
 tali (1:3.20.0-1) unstable; urgency=medium
 
   [ Pedro Beja ]

Modified: desktop/unstable/tali/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/tali/debian/rules?rev=48746&op=diff
==============================================================================
--- desktop/unstable/tali/debian/rules	[utf-8] (original)
+++ desktop/unstable/tali/debian/rules	[utf-8] Mon May 16 00:48:01 2016
@@ -11,10 +11,3 @@
 
 DEB_CONFIGURE_EXTRA_FLAGS := --bindir=\$${prefix}/games
 LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed
-
-DEB_DH_FIXPERMS_ARGS := -X/usr/games/$(cdbs_curpkg)
-
-$(patsubst %,binary-post-install/%,$(DEB_PACKAGES)) :: binary-post-install/%:
-	if [ -d debian/$(cdbs_curpkg)/usr/games ]; then \
-		chmod u+w debian/$(cdbs_curpkg)/usr/games/$(cdbs_curpkg) ; \
-	fi

Modified: desktop/unstable/tali/debian/tali.postinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/tali/debian/tali.postinst?rev=48746&op=diff
==============================================================================
--- desktop/unstable/tali/debian/tali.postinst	[utf-8] (original)
+++ desktop/unstable/tali/debian/tali.postinst	[utf-8] Mon May 16 00:48:01 2016
@@ -1,20 +1,13 @@
 #! /bin/sh
 set -e
 
-if [ "$1" = "configure" ] ; then
-  if [ ! -d /var/games ]; then
-	mkdir /var/games
-  fi
-
-  for FILE in gtali.Colors.scores gtali.Regular.scores; do
-	if [ -e /var/games/$FILE ]; then
-		continue
+# 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/gtali.*.scores
+	if [ -d /var/games ] ; then
+		rmdir --ignore-fail-on-non-empty /var/games
 	fi
-
-	touch /var/games/$FILE
-	chown root:games /var/games/$FILE
-	chmod 664 /var/games/$FILE
-  done
 fi
 
 #DEBHELPER#




More information about the pkg-gnome-commits mailing list