X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=6515061d37679f4d6526c13899f1f36b62193fa4;hb=c45a2c532414ceebe73d11d03a8857167c0cbd69;hp=b182185223a54dcebdf07f98fa5c7e4a04e6eb60;hpb=1e70ff3fe998033fd93c8cd177082b8cd566d2ce;p=carnet-upgrade.git diff --git a/debian/postinst b/debian/postinst index b182185..6515061 100644 --- a/debian/postinst +++ b/debian/postinst @@ -31,6 +31,15 @@ case "$1" in ;; esac +# clear old cached values +if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 4.0; then + if [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_set carnet-upgrade/debconf-priority "" + db_set carnet-upgrade/check-services "" + fi +fi + # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts.