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 /\./\ : :' : [EMAIL PROTECTED] `. `' [EMAIL PROTECTED] `- Debian GNU/Linux -- The power of freedom
signature.asc
Description: Ceci est une partie de message numériquement signée