X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Fneurodebian-popularity-contest.postrm;fp=debian%2Fneurodebian-popularity-contest.postrm;h=0000000000000000000000000000000000000000;hb=441723d6edfc6b868be27bfa4ad63dc7a2fefdb8;hp=92bb35d88fc615bd3278a147dd77320a0d7ed88b;hpb=6c6fa9cd3bd627a60f165682f96af3cc06d9ccc9;p=neurodebian.git diff --git a/debian/neurodebian-popularity-contest.postrm b/debian/neurodebian-popularity-contest.postrm deleted file mode 100755 index 92bb35d..0000000 --- a/debian/neurodebian-popularity-contest.postrm +++ /dev/null @@ -1,23 +0,0 @@ -#!/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