#!/bin/sh

set -e

if [ -x "$(which update-desktop-database 2> /dev/null)" ]
then
    update-desktop-database -q
fi

if [ "$1" = purge ]
then
	rm -f /etc/wmweather.conf
	if [ -e /usr/share/debconf/confmodule ]
	then
		. /usr/share/debconf/confmodule
		db_purge
	fi
fi

exit 0
