Fix lintian warnings.
[carnet-upgrade.git] / debian / postinst
index 18aba45..589daf7 100644 (file)
@@ -35,14 +35,15 @@ if [ "$1" = "configure" ] && [ -e /usr/share/debconf/confmodule ]; then
     . /usr/share/debconf/confmodule
 
     # clear old cached values
-    if dpkg --compare-versions "$2" lt 4.0; then
+    if dpkg --compare-versions "$2" lt 6.0; then
         db_set carnet-upgrade/debconf-priority ""
         db_set carnet-upgrade/check-services   ""
-    fi
 
-    # display installation notice (since 4.0.3)
-    db_input high carnet-upgrade/short-instructions || true
-    db_go
+        # display installation notice for new version
+        db_fset carnet-upgrade/short-instructions seen false
+        db_input high carnet-upgrade/short-instructions || true
+        db_go
+    fi
 fi
 
 # dh_installdeb will replace this with shell code automatically