please ublock angband/1:3.0.9b-3
Hi,
This version fixes an important bug, and correctys permission on
a data file so the game can write to it. Debdiff attached.
manoj
diff -wu angband-3.0.9b/debian/changelog angband-3.0.9b/debian/changelog
--- angband-3.0.9b/debian/changelog
+++ angband-3.0.9b/debian/changelog
@@ -1,3 +1,19 @@
+angband (1:3.0.9b-3) unstable; urgency=medium
+
+ * pre-inst fails on upgrade from version 1:3.0.5-1, as we are not
+ checking /var/lib/games/angband/save has any files in it - if it
+ doesn't, then you see the failure mode described. Analysis and fix
+ from Matthew Vernon. This closes an important bug. Closes: #494199
+ * /var/games/angband/data/spell.raw has wrong permissions. We set the
+ correct permission on 4 other directories in the /var/games/angband/
+ hierarchy, and really, this chmod g+w was a long standing bug. While
+ not labeled important, this is a minimal change, and is consistent
+ with the handling of other game files. Thanks to Chris Carr.
+ Closes: #490871
+ * Updated Standards-Version. No changes.
+
+ -- Manoj Srivastava <srivasta@debian.org> Thu, 04 Sep 2008 11:13:05 -0500
+
angband (1:3.0.9b-2) unstable; urgency=low
diff -wu angband-3.0.9b/debian/preinst angband-3.0.9b/debian/preinst
--- angband-3.0.9b/debian/preinst
+++ angband-3.0.9b/debian/preinst
@@ -73,6 +73,7 @@
for dir in apex bone save user; do
if [ -d /var/lib/games/angband/$dir ]; then
test -d /var/games/angband/$dir || mkdir -p /var/games/angband/$dir
+ if ls /var/games/angband/$dir | grep . >/dev/null ; then
for file in /var/lib/games/angband/$dir/*; do
basefile=$(basename $file)
if [ "X$basefile" = "Xdelete.me" ]; then
@@ -83,6 +84,7 @@
/var/games/angband/$dir/$basefile
done
fi
+ fi
done
fi
else
diff -wu angband-3.0.9b/debian/postinst angband-3.0.9b/debian/postinst
--- angband-3.0.9b/debian/postinst
+++ angband-3.0.9b/debian/postinst
@@ -193,6 +193,7 @@
chown -R root:games /var/games/angband/
# Make sure the game can write the files it needs to write to
+ chmod -R g+w /var/games/angband/data
chmod -R g+w /var/games/angband/user
chmod -R g+w /var/games/angband/bone
chmod -R g+w /var/games/angband/save
diff -wu angband-3.0.9b/debian/control angband-3.0.9b/debian/control
--- angband-3.0.9b/debian/control
+++ angband-3.0.9b/debian/control
@@ -9,7 +9,7 @@
libsdl1.2-dev | libsdl-dev, libsdl-mixer1.2-dev,
libsdl-gfx1.2-dev, libsdl-image1.2-dev, libsdl-ttf2.0-dev,
libsdl-net1.2-dev
-Standards-Version: 3.7.3.0
+Standards-Version: 3.8.0.0
Package: angband
Architecture: any
--
War is delightful to those who have had no experience of it. Desiderius
Erasmus
Manoj Srivastava <srivasta@acm.org> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
Reply to: