This is an automated email from the git hooks/post-receive script. skitt pushed a commit to branch debian-sid in repository gweled.
commit ff47e9e4d6a2336e68f7780756e5bfca0a805edf Author: Ondřej Surý <[email protected]> Date: Sun Jul 11 18:39:21 2010 +0200 Add handling of score files (Closes: #587043) --- debian/postinst | 46 ++++++++++++++++++++++++++++++++++++++++++++++ debian/postrm | 21 +++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..a917207 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,46 @@ +#!/bin/sh +# postinst script for gweled +# + +set -e + +case "$1" in + configure) + if [ -f /var/games/gweled.easy.scores ]; then + if [ ! -f /var/games/gweled.Normal.scores ]; then + mv /var/games/gweled.easy.scores /var/games/gweled.Normal.scores; + else + rm /var/games/gweled.easy.scores; + fi + fi + if [ -f /var/games/gweled.hard.scores ]; then + if [ ! -f /var/games/gweled.Timed.scores ]; then + mv /var/games/gweled.hard.scores /var/games/gweled.Timed.scores; + else + rm /var/games/gweled.hard.scores; + fi + fi + + for scorefile in Normal Timed; do + [ ! -f /var/games/gweled.${scorefile}.scores ] && \ + touch /var/games/gweled.${scorefile}.scores; + chown root:games /var/games/gweled.${scorefile}.scores; + chmod 664 /var/games/gweled.${scorefile}.scores; + done + + dpkg-statoverride --remove /usr/games/gweled >/dev/null 2>&1 || true + dpkg-statoverride --update --add root games 02755 /usr/games/gweled + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..2da5fce --- /dev/null +++ b/debian/postrm @@ -0,0 +1,21 @@ +#!/bin/sh +# postrm script for #PACKAGE# + +set -e + +case "$1" in + purge) + rm -f /var/games/gweled.{easy,hard,Normal.Timed}.scores; + ;; + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/gweled.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

