X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Fwamerican.postrm;fp=debian%2Fwamerican.postrm;h=3b0210a28d57e819a353fa864648da063521187b;hb=39721535827e68cffbea5e6a3065095ab6224c27;hp=0000000000000000000000000000000000000000;hpb=2f037d0282a23d2f036658024432f7e3160a53b4;p=deb_pkgs%2Fscowl.git diff --git a/debian/wamerican.postrm b/debian/wamerican.postrm new file mode 100644 index 0000000..3b0210a --- /dev/null +++ b/debian/wamerican.postrm @@ -0,0 +1,22 @@ +#!/bin/sh + +set -e + +# wamerican can be installed standalone, with no dictionaries-common, +# so use remove-default-wordlist if present and do not complain +# otherwise + +rmscript="/usr/sbin/remove-default-wordlist" + +case "$1" in abort-install|remove) + if [ -x $rmscript ]; then + $rmscript wamerican + fi + # Remove shared question stuff on package removal, not only on purge + if [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge + fi +esac + +#DEBHELPER#