X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Fneurodebian-popularity-contest.postinst;fp=debian%2Fneurodebian-popularity-contest.postinst;h=4f6c57263a03e600f6a9b2bc07225d46a4e335e6;hb=441723d6edfc6b868be27bfa4ad63dc7a2fefdb8;hp=fb003d5226173167bc58a3de22a2789ceeeb9739;hpb=6c6fa9cd3bd627a60f165682f96af3cc06d9ccc9;p=neurodebian.git diff --git a/debian/neurodebian-popularity-contest.postinst b/debian/neurodebian-popularity-contest.postinst index fb003d5..4f6c572 100755 --- a/debian/neurodebian-popularity-contest.postinst +++ b/debian/neurodebian-popularity-contest.postinst @@ -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