# 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.
Thanks.
This bug has been fixed in the latest development release Lucid Lynx and the directory /var/games/ angband/ data is now correctly removed.
===== /angband- 3.0.9b/ debian/ postrm /tmp/uts0sQ5ctW /angband- 3.1.1.1626/ debian/ postrm 3.0.9b/ debian/ postrm 2009-11-04 02:00:59.000000000 +0000 3.1.1.1626/ debian/ postrm 2009-11-04 02:01:00.000000000 +0000
diff -Nru /tmp/JyTztnBSIn
--- angband-
+++ angband-
@@ -57,7 +57,7 @@
# the debian-policy package
# Ensure the menu system is updated update- menus ] || /usr/bin/ update- menus update- menus ] || update-menus
-[ ! -x /usr/bin/
+[ ! -x /usr/bin/
case "$1" in angband/ info ]; then angband/ info angband/ data ]; then angband/ data edit/cost_ adj.txt ]; then edit/cost_ adj.txt
remove)
@@ -129,6 +129,12 @@
if [ -d /var/games/
rm -rf /var/games/
fi
+ if [ -d /var/games/
+ rm -rf /var/games/
+ fi
+ if [ -e /etc/angband/
+ rm /etc/angband/
+ fi
rmdir /var/games/angband
fi
;;
=====
A workaround is to remove by hand the directory /var/games/ angband/ data before purging the package.