diff --git a/debian/postrm b/debian/postrm index de8ea2fa46..5cdaa23a0d 100644 --- a/debian/postrm +++ b/debian/postrm @@ -3,7 +3,14 @@ set -e if [ "$1" = "purge" ]; then - if [ -d /etc/mplayer/ ]; then - rm -rf /etc/mplayer/ - fi + if [ -e /usr/share/debconf/confmodule ]; then + # Source debconf library. + . /usr/share/debconf/confmodule + # Remove my changes to the db. + db_purge + fi + + if [ -d /etc/mplayer/ ]; then + rm -rf /etc/mplayer/ + fi fi