[SCM] Packaging for Nighthawk branch, master, updated. debian/2.3+dfsg1-1-1-g1aaa216

Peter De Wachter pdewacht at gmail.com
Tue Apr 21 17:30:05 UTC 2009


The following commit has been merged in the master branch:
commit 1aaa216d0a80c05e0cd3dba4fbb1d30e90f36574
Author: Peter De Wachter <pdewacht at gmail.com>
Date:   Tue Apr 21 19:25:25 2009 +0200

    Ensure /var/games exists before trying to move the old score file there.
    (Closes: #525013)

diff --git a/debian/changelog b/debian/changelog
index 1244fcc..d19d870 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+nighthawk (2.3+dfsg1-2) unstable; urgency=low
+
+  * Ensure /var/games exists before trying to move the old score file there.
+    (Closes: #525013)
+
+ -- Peter De Wachter <pdewacht at gmail.com>  Tue, 21 Apr 2009 19:23:06 +0200
+
 nighthawk (2.3+dfsg1-1) unstable; urgency=low
 
   * New maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
diff --git a/debian/postinst b/debian/postinst
index c815dad..cfa44e1 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -5,6 +5,10 @@ set -e
 OLD_SCORES=/var/lib/games/nighthawk.scores
 SCORES=/var/games/nighthawk.scores
 
+if [ ! -e ${SCORES%/*} ]; then
+  mkdir ${SCORES%/*}
+fi
+
 # Move the old scores to the new location.
 # Don't leave an empty and useless directory behind.
 if [ -e $OLD_SCORES ]; then
@@ -12,10 +16,6 @@ if [ -e $OLD_SCORES ]; then
   rmdir --ignore-fail-on-non-empty ${OLD_SCORES%/*}
 fi
 
-if [ ! -e ${SCORES%/*} ]; then
-  mkdir ${SCORES%/*}
-fi
-
 if [ ! -e $SCORES ]; then
   touch $SCORES
   chown root:games $SCORES

-- 
Packaging for Nighthawk



More information about the Pkg-games-commits mailing list