tags 688259 patch thanks
Hi Drew and Andreas, i had a look at the issue and prepared a patch for it. As far as i can see changing the path for $static_vardir to /usr/share/games/zangband/lib is sufficient to avoid the deletion of raw files in /var/games/zangband/data. Running piuparts afterwards was successful. The wrong path in zangband.postinst caused the for loop to touch only one file, "*.raw". I'm not sure whether the postinst script is still necessary nowadays. It seems it's some kind of remnant from the past. It might be too late for Wheezy but maybe we could drop it for Jessie completely. The make file in /lib/data seems to take care of installing the raw files anyway. Overwriting of the score file seems suspicious too, but i don't know enough about zangband to assess the issue properly. Drew, if you are still interested in having a co-maintainer, i can prepare a new version for zangband and fix some lintian warnings. Regards, Markus
diff -u zangband-2.7.5pre1/debian/changelog zangband-2.7.5pre1/debian/changelog --- zangband-2.7.5pre1/debian/changelog +++ zangband-2.7.5pre1/debian/changelog @@ -1,3 +1,11 @@ +zangband (1:2.7.5pre1-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix wrong $static_datadir path in zangband.postinst file to avoid + deletion of *.raw files in /var/games/zangband/data. (Closes: #688259) + + -- Markus Koschany <a...@gambaru.de> Tue, 23 Oct 2012 15:04:05 +0200 + zangband (1:2.7.5pre1-4) unstable; urgency=low * libgtk1 is no longer welcome in Debian. zangband's gtk shell was diff -u zangband-2.7.5pre1/debian/zangband.postinst zangband-2.7.5pre1/debian/zangband.postinst --- zangband-2.7.5pre1/debian/zangband.postinst +++ zangband-2.7.5pre1/debian/zangband.postinst @@ -5,7 +5,7 @@ old_var_games=/var/lib/games old_var_datadir=/var/lib/games/zangband var_datadir=/var/games/zangband -static_datadir=/usr/share/games/zangband +static_datadir=/usr/share/games/zangband/lib notmovingoldfiles="WARNING: $old_var_datadir is a symlink. Not moving files to new location. Please fix manually. @@ -13,7 +13,7 @@ regenerated automatically in their new location.)" movingoldfiles="WARNING: Old zangband data files exist. -Moving save, bones, and score files to $new_var_datadir. +Moving save, bones, and score files to $var_datadir. Existing files will be backed up before overwriting." fixperms () {
signature.asc
Description: Digital signature