]> git.donarmstrong.com Git - neurodebian.git/commitdiff
handle popcon -- it is installed but disabled by default
authorNeuroDebian User <brain@neurodebian.(none)>
Mon, 7 Feb 2011 14:40:12 +0000 (09:40 -0500)
committerYaroslav Halchenko <debian@onerussian.com>
Mon, 7 Feb 2011 15:22:13 +0000 (10:22 -0500)
now dpkg-reconfigure popcon (with =gnome as a frontend)

tools/nd-vmsetupwizard

index 539fb350a09c0afc2f8af42ec984c5cca219d37c..6c69486d667f504b25ec1b45ebab9d4d0e983d26 100755 (executable)
@@ -34,15 +34,22 @@ fi
 # initialize apt
 update-manager -c
 
-if [ ! -e /etc/popularity-contest.conf ]; then
+popconf=/etc/popularity-contest.conf
+if [ ! -e "$popconf" ] || grep -q -e '^PARTICIPATE.*no' "$popconf" ;
+then
        zenity --info $icon_opt --title="NeuroDebian Setup Wizard" \
                --text="You will now be given the choice to participate in the package survey. If enabled, a list of installed packages will be anonymously sent to Debian (http://popcon.debian.org). Your participation is important for two reasons:
 
 1) Popular packages receive more attention from developers, bugs are fixed faster and updates are provided quicker.
 2) User statistics can help research software developers to acquire funding for continued development."
 
+       if [ -e "$popconf" ] ; then
+       # just reconfigure so user could get a chance to participate
+               sudo DEBIAN_FRONTEND=gnome dpkg-reconfigure popularity-contest  
+       else
        # install, but do not fail if something goes wrong
-       nd-autoinstall popularity-contest /etc/popularity-contest.conf || true
+               nd-autoinstall popularity-contest /etc/popularity-contest.conf || true
+       fi
 fi
 
 # install custom filter for synaptics