. /usr/share/debconf/confmodule
UPSTREAM_VERSION=
+DEBIAN_VERSION=
-if [ "$1" = configure -a "$2" = "" ]; then
- # Installing for the first time (or after a purge).
+if [ "$1" = configure ] \
+ && dpkg --compare-versions "$2" lt "$DEBIAN_VERSION"; then
+ # Installing for the first time or upgrading.
# To comply with the Ion trademark licence terms, we must ensure
# that this version is up-to-date or that the user acknowledges
# it is not. I freely admit that this is a horrible abuse of
chmod a+x $inst
fi
+# Initialise extra configuration file list if missing
+[ -f /etc/X11/ion3/cfg_debian_ext.lua ] || >/etc/X11/ion3/cfg_debian_ext.lua
+
#DEBHELPER#
# Remove the old now-renamed generated Debian menu