* add backport patch for wheezy for neurodebian-guest-additions to pre-depend on update-manager-gnome
-* popcon: cleanup **only** when upgrading from older version of the neurodebian-popcon
-
into Depends (from Pre-Depends), and stripping deprecated -ose suffix
- fixing package names for chromium, and removing update-manager-gnome
N/A in sid
+ * debian/neurodebian-popularity-contest.*
+ - .postinst should try to remove old-fashion popcon entry only if
+ upgrading/configuring from pre 0.33 version of neurodebian-*
+ - .postrm removed altogether since will not longer be needed because
+ popcon configuration gets installed as a config file now
* tools/nd-configurerepo
- use long GPG key id
- unify prefix for environment variables to be NEURODEBIAN_ instead of
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
+++ /dev/null
-#!/bin/sh -e
-
-#DEBHELPER#
-
-popcon_conf=/etc/popularity-contest.conf
-nd_popcon_conf=/etc/popularity-contest.d/neurodebian.conf
-remove_neurodebian_popcon_pre161() {
- # Adjust popularity-contest.conf
- if [ -e "$popcon_conf" ] \
- && grep -q "http://neuro.debian.net/cgi-bin/popcon-submit.cgi" $popcon_conf; then
- echo "Removing NeuroDebian url for Popularity Contest submissions."
- # First remove any explicit mentioning and then empty additions
- sed -i -e 's,http://neuro.debian.net/cgi-bin/popcon-submit.cgi,,g' \
- -e '/SUBMITURLS+=" *"/d' \
- -e '/SUBMITURLS="$SUBMITURLS *"/d' \
- "$popcon_conf"
- fi
-}
-
-# If requested to be purged -- remove our entry
-if [ "$1" = "purge" ]; then
- remove_neurodebian_popcon_pre161
-fi