[SCM] Debian package of greed branch, master, updated. upstream/3.6-76-g1bd5ba5
Josue Abarca
jmaslibre at debian.org.gt
Wed Nov 16 23:28:56 UTC 2011
The following commit has been merged in the master branch:
commit ce67d821d9e1cfbffc5f01030f89f13756946f96
Author: Josue Abarca <jmaslibre at debian.org.gt>
Date: Wed Nov 16 15:28:42 2011 -0600
* debian/postinst Now it looks for the score file even if the previous
version of the package was not installed/configured
diff --git a/debian/postinst b/debian/postinst
index 60e608b..0417305 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -6,16 +6,14 @@ set -e
case "$1" in
configure)
SCOREFILE="/var/games/greed/greed.hs"
- if [ "$2" != "" ]; then
- # Old score files are now incompatible
- if dpkg --compare-versions "$2" lt "3.7-1"; then
- if [ -f $SCOREFILE ]; then
- echo -n "Preserving user scores to $SCOREFILE.dpkg-old..."
- mv -f "$SCOREFILE" "$SCOREFILE".dpkg-old
- chown root:games "$SCOREFILE".dpkg-old
- chmod 664 "$SCOREFILE".dpkg-old
- echo "done."
- fi
+ # Old score files are now incompatible
+ if dpkg --compare-versions "$2" lt "3.7-1"; then
+ if [ -f $SCOREFILE ]; then
+ echo -n "Preserving user scores to $SCOREFILE.dpkg-old..."
+ mv -f "$SCOREFILE" "$SCOREFILE".dpkg-old
+ chown root:games "$SCOREFILE".dpkg-old
+ chmod 664 "$SCOREFILE".dpkg-old
+ echo "done."
fi
fi
if [ ! -e $SCOREFILE ]; then
--
Debian package of greed
More information about the Pkg-games-commits
mailing list