X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=debian%2Fion3.postinst;h=f8e8fd92d20d02d1d7bdbf2c6819b51d2fa61391;hp=30850138ae4bbd45d87d3f1b49092e572e2932ae;hb=f14d31a661edfbb631dc1f1eea33f6e0155b818b;hpb=e502d618769591cd5c8c0180b2b4399002988646 diff --git a/debian/ion3.postinst b/debian/ion3.postinst index 3085013..f8e8fd9 100644 --- a/debian/ion3.postinst +++ b/debian/ion3.postinst @@ -3,9 +3,11 @@ set -e . /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