r48711 - in /desktop/unstable/five-or-more/debian: changelog five-or-more.postinst five-or-more.postrm rules

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Sun May 15 23:33:30 UTC 2016


Author: biebl
Date: Sun May 15 23:33:30 2016
New Revision: 48711

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

Removed:
    desktop/unstable/five-or-more/debian/five-or-more.postrm
Modified:
    desktop/unstable/five-or-more/debian/changelog
    desktop/unstable/five-or-more/debian/five-or-more.postinst
    desktop/unstable/five-or-more/debian/rules

Modified: desktop/unstable/five-or-more/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/five-or-more/debian/changelog?rev=48711&op=diff
==============================================================================
--- desktop/unstable/five-or-more/debian/changelog	[utf-8] (original)
+++ desktop/unstable/five-or-more/debian/changelog	[utf-8] Sun May 15 23:33:30 2016
@@ -1,6 +1,8 @@
 five-or-more (1:3.20.0-2) UNRELEASED; urgency=medium
 
   * Drop obsolete transitional package glines.
+  * 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 15:43:37 +0200
 

Modified: desktop/unstable/five-or-more/debian/five-or-more.postinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/five-or-more/debian/five-or-more.postinst?rev=48711&op=diff
==============================================================================
--- desktop/unstable/five-or-more/debian/five-or-more.postinst	[utf-8] (original)
+++ desktop/unstable/five-or-more/debian/five-or-more.postinst	[utf-8] Sun May 15 23:33:30 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 glines.Small.scores glines.Medium.scores glines.Large.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/glines.*.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#

Modified: desktop/unstable/five-or-more/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/five-or-more/debian/rules?rev=48711&op=diff
==============================================================================
--- desktop/unstable/five-or-more/debian/rules	[utf-8] (original)
+++ desktop/unstable/five-or-more/debian/rules	[utf-8] Sun May 15 23:33:30 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




More information about the pkg-gnome-commits mailing list