r48732 - in /desktop/unstable/gnome-robots/debian: changelog gnome-robots.postinst gnome-robots.postrm rules
biebl at users.alioth.debian.org
biebl at users.alioth.debian.org
Mon May 16 00:22:54 UTC 2016
Author: biebl
Date: Mon May 16 00:22:54 2016
New Revision: 48732
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=48732
Log:
Clean up old scores files. They are no longer stored system wide
but in the user's home directory.
Removed:
desktop/unstable/gnome-robots/debian/gnome-robots.postrm
Modified:
desktop/unstable/gnome-robots/debian/changelog
desktop/unstable/gnome-robots/debian/gnome-robots.postinst
desktop/unstable/gnome-robots/debian/rules
Modified: desktop/unstable/gnome-robots/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-robots/debian/changelog?rev=48732&op=diff
==============================================================================
--- desktop/unstable/gnome-robots/debian/changelog [utf-8] (original)
+++ desktop/unstable/gnome-robots/debian/changelog [utf-8] Mon May 16 00:22:54 2016
@@ -1,6 +1,8 @@
gnome-robots (1:3.18.1-2) UNRELEASED; urgency=medium
* Drop obsolete transitional package gnobots2.
+ * 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:09:56 +0200
Modified: desktop/unstable/gnome-robots/debian/gnome-robots.postinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-robots/debian/gnome-robots.postinst?rev=48732&op=diff
==============================================================================
--- desktop/unstable/gnome-robots/debian/gnome-robots.postinst [utf-8] (original)
+++ desktop/unstable/gnome-robots/debian/gnome-robots.postinst [utf-8] Mon May 16 00:22:54 2016
@@ -1,27 +1,13 @@
#! /bin/sh
set -e
-if [ "$1" = "configure" ] ; then
- if [ ! -d /var/games ]; then
- mkdir /var/games
- fi
-
- for FILE in gnobots2.classic_robots-safe.scores gnobots2.classic_robots.scores \
- gnobots2.classic_robots-super-safe.scores gnobots2.nightmare-safe.scores \
- gnobots2.nightmare.scores gnobots2.nightmare-super-safe.scores \
- gnobots2.robots2_easy-safe.scores gnobots2.robots2_easy.scores \
- gnobots2.robots2_easy-super-safe.scores gnobots2.robots2-safe.scores \
- gnobots2.robots2.scores gnobots2.robots2-super-safe.scores \
- gnobots2.robots_with_safe_teleport-safe.scores gnobots2.robots_with_safe_teleport.scores \
- gnobots2.robots_with_safe_teleport-super-safe.scores; do
- if [ -e /var/games/$FILE ]; then
- continue
- fi
-
- touch /var/games/$FILE
- chown root:games /var/games/$FILE
- chmod 664 /var/games/$FILE
- done
+# 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.18.1-2" ; then
+ rm -f /var/games/gnobots2.*.scores
+ if [ -d /var/games ] ; then
+ rmdir --ignore-fail-on-non-empty /var/games
+ fi
fi
#DEBHELPER#
Modified: desktop/unstable/gnome-robots/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-robots/debian/rules?rev=48732&op=diff
==============================================================================
--- desktop/unstable/gnome-robots/debian/rules [utf-8] (original)
+++ desktop/unstable/gnome-robots/debian/rules [utf-8] Mon May 16 00:22:54 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