[Fedora-packaging] Adding a section on GSettingsSchema

Richard Hughes hughsient at gmail.com
Thu May 20 15:13:27 UTC 2010


On 20 May 2010 15:56, Rex Dieter <rdieter at math.unl.edu> wrote:
> Thanks for the suggestions, I think %posttrans should be the way to go
> in general for stuff like this (I've been meaning to make a similar
> proposal to modify scriptletsnippets for update-desktop-database and
> update-mime-database for awhile).
>
> So, what that means, is using something like this instead:
>
> %posttrans
> glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
>
> %postun
> if [ $1 -eq 0 ]; then
>   glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
> fi
>

Works for me.

Richard.


More information about the packaging mailing list