]> git.donarmstrong.com Git - neurodebian.git/blobdiff - debian/neurodebian-popularity-contest.postinst
Merge remote-tracking branch 'alioth/devel'
[neurodebian.git] / debian / neurodebian-popularity-contest.postinst
index fb003d5226173167bc58a3de22a2789ceeeb9739..4f6c57263a03e600f6a9b2bc07225d46a4e335e6 100755 (executable)
@@ -48,8 +48,11 @@ if [ "$1" = "configure" -o "$1" = "abort-upgrade" ]; then
        if dpkg --compare-versions $popcon_version lt 1.61; then
                add_neurodebian_popcon_pre161
        else
-               # Assure that we have no "old" settings for submission
-               remove_neurodebian_popcon_pre161 || :
+               # Assure that we have no "old" settings for submission if
+               # previous version of our package was old
+               if [ "$1" = "configure" ] && [ -z "$2" ] && dpkg --compare-versions "$2" lt 0.33; then
+                       remove_neurodebian_popcon_pre161 || :
+               fi
        fi
 fi