Bug#369863: Accepted gdesklets 0.35.3-2 (source i386)

Josselin Mouette joss at debian.org
Sun Jun 4 10:48:41 UTC 2006


reopen 369863
thanks

Le dimanche 04 juin 2006 à 03:02 -0700, Clément Stenac a écrit :
>  gdesklets (0.35.3-2) unstable; urgency=low
>  .
>    * Remove gconf stuff (Closes:#369863)

Sorry, I haven't been clear enough in the bug report. I see you have
added a rule to remove the schema in /etc/gconf/schemas but this is not
the problem - dh_gconf already adds it the postrm.

The schema is not only still present in /etc/gconf/schemas, it is still
*installed* in /etc/gconf/gconf.xml.defaults. This is because the former
version used gconftool --makefile-install-rule to install the schemas in
the postinst but not gconftool --makefile-uninstall-rule to uninstall
them.

The correct solution is something like this in the postinst:

if [ "$1" = configure ] && dpkg --compare-versions "$2" le "0.35.3-2"; then
        GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
        TMP_HOME=`mktemp -d /tmp/gconf.XXXXXX`
        HOME=$TMP_HOME gconftool-2 --direct \
               --config-source=${GCONF_CONFIG_SOURCE} \
               --makefile-uninstall-rule \
               /usr/share/gconf/schemas/gdesklets.schemas
        rm -rf $TMP_HOME
fi

This will uninstall the schemas from /etc/gconf/gconf.xml.defaults. If
some keys were removed, they will be not be cleaned up and this requires
a gconftool-2 --unset or --recursive-unset. However this is a less
important problem, as all keys which are relevant to the new version
will be uninstalled from /etc.
--
 .''`.           Josselin Mouette        /\./\
: :' :           josselin.mouette at ens-lyon.org
`. `'                        joss at debian.org
  `-  Debian GNU/Linux -- The power of freedom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20060604/fb212190/attachment.pgp


More information about the Pkg-gnome-maintainers mailing list