Comment 6 for bug 317792

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks.

This bug has been fixed in the latest development release Lucid Lynx and the directory /var/games/angband/data is now correctly removed.

=====
diff -Nru /tmp/JyTztnBSIn/angband-3.0.9b/debian/postrm /tmp/uts0sQ5ctW/angband-3.1.1.1626/debian/postrm
--- angband-3.0.9b/debian/postrm 2009-11-04 02:00:59.000000000 +0000
+++ angband-3.1.1.1626/debian/postrm 2009-11-04 02:01:00.000000000 +0000
@@ -57,7 +57,7 @@
 # the debian-policy package

 # Ensure the menu system is updated
-[ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus
+[ ! -x /usr/bin/update-menus ] || update-menus

 case "$1" in
   remove)
@@ -129,6 +129,12 @@
      if [ -d /var/games/angband/info ]; then
   rm -rf /var/games/angband/info
      fi
+ if [ -d /var/games/angband/data ]; then
+ rm -rf /var/games/angband/data
+ fi
+ if [ -e /etc/angband/edit/cost_adj.txt ]; then
+ rm /etc/angband/edit/cost_adj.txt
+ fi
      rmdir /var/games/angband
  fi
     ;;
=====

A workaround is to remove by hand the directory /var/games/angband/data before purging the package.