Dear Maintainer,
Please consider this short patch that
replaces open code debian/postrm
with a machine-parsable debian/purge.
Moreunder I also posted the new generated .postrm script.
"It just works"
Greetings
Alexandre
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: phalanx
Section: games
Priority: optional
Maintainer: Jose G. López <josgalo@jglopez.name>
-Build-Depends: debhelper-compat (= 13)
+Build-Depends: debhelper-compat (= 13), dh-sequence-cruft
Rules-Requires-Root: binary-targets
Standards-Version: 4.6.1
Homepage: https://sourceforge.net/projects/phalanx
--- a/debian/postrm
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if test "$1" = purge; then
- rm -f /var/games/phalanx.learn
-fi
-
-#DEBHELPER#
--- /dev/null
+++ b/debian/purge
@@ -0,0 +1 @@
+/var/games/phalanx.learn
$ cat debian/phalanx/DEBIAN/postrm
#!/bin/sh
set -e
# Automatically added by dh_cruft/0.9.80
if [ "$1" = "purge" ]
then
# we need to glob, so no quotes
rm -rf ${DPKG_ROOT:-}/var/games/phalanx.learn
if test -d ${DPKG_ROOT:-}/var/games/
then
rmdir --ignore-fail-on-non-empty ${DPKG_ROOT:-}/var/games/
fi
fi
# End automatically added section
# Automatically added by dh_installdebconf/13.31
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section