[Fedora-packaging] Fwd: Re: packages moving from gconf to gsettings

Julian Sikorski belegdol at gmail.com
Mon Apr 18 21:56:46 UTC 2011

caillon suggested this is a better place to ask such questions, so here
is goes.


------ Wiadomość oryginalna ------
Temat: Re: packages moving from gconf to gsettings
Data: Sun, 17 Apr 2011 01:15:06 +0200
Nadawca: Julian Sikorski <belegdol at gmail.com>
Odpowiedź-Do: Development discussions related to Fedora
<devel at lists.fedoraproject.org>
Adresat: devel at lists.fedoraproject.org
Grupy dyskusyjne: gmane.linux.redhat.fedora.devel
Odniesienia: <io58kc$dm4$1 at dough.gmane.org>

W dniu 14.04.2011 00:38, Julian Sikorski pisze:
> Dear List,
> I was just trying to update gnome-mplayer (not in fedora, but that is
> irrelevant) which migrated from gconf to gsettings. The problem is, that
> the standard scriptlets [1] do not run on upgrades, leaving the package
> in a not working state (not running even).
> I think it would be good to establish some guidelines to handle such
> cases, since packages moving from gconf to gsettings are likely to
> become more and more common.
> Cheers,
> Julian
> [1]
> http://fedoraproject.org/wiki/Packaging/ScriptletSnippets#GSettings_Schema
I came up with the following, please let me know what you think:

if [ $1 -eq 0 ] ; then
    glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :

glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :


devel mailing list
devel at lists.fedoraproject.org

More information about the packaging mailing list