[Popcon-developers] Bug#251986: Popularity contest installed after saying "No"
Petter Reinholdtsen
Petter Reinholdtsen <pere@hungry.com>, 251986@bugs.debian.org
Sun, 08 Aug 2004 17:14:19 +0200
reassign 251986 base-config
thanks
[Martin Michlmayr]
> Sure, but the problem is that people don't install the package
> themselves, but base-config does it for them. They think that the
> question is about installing popcon, and not about running it.
We could modify base-config to uninstall popularity-contest if the
user said no to participate. I believe base-config need to fix it, as
base-config requested the installation. Reassigning to base-config.
Something like this would do it. The idea is to check the debconf
question value, and remove the package if it is 'false'.
The debconf-get-selections tool was introduced in debconf version
1.3.19 and ended in debconf-utils in version 1.4.9.
Index: lib/menu/pkgsel
===================================================================
--- lib/menu/pkgsel (revision 1185)
+++ lib/menu/pkgsel (working copy)
@@ -60,6 +60,13 @@
dpkg --purge $extra || true
fi
fi
+
+ # If user said no to participate in popularity-contest, remove
+ # the package.
+ if debconf-get-selections | grep popularity-contest/participate |
+ grep -q false ; then
+ dpkg --purge popularity-contest
+ fi
;;
failure)
# This branch is reached if there was some problem installing.