Update gsettings scriptlet

http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GSettings_Schema

(don't compile schemas twice on updating the package, only once is sufficient)
This commit is contained in:
Christopher Aillon 2011-05-07 19:41:16 -07:00
parent 364b747aa7
commit 03f01eac84

View File

@ -1,7 +1,7 @@
Summary: Backends for the gio framework in GLib
Name: gvfs
Version: 1.8.1
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gtk.org
@ -175,7 +175,9 @@ update-gio-modules "$host" &> /dev/null || :
# Update desktop files mime mappings:
update-desktop-database &> /dev/null ||:
update-gio-modules "$host" &> /dev/null || :
glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
if [ $1 -eq 0 ] ; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
fi
%posttrans
glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
@ -310,6 +312,9 @@ killall -USR1 gvfsd >&/dev/null || :
%endif
%changelog
* Sat May 07 2011 Christopher Aillon <caillon@redhat.com> - 1.8.1-2
- Update gsettings scriptlet
* Tue Apr 26 2011 Tomas Bzatek <tbzatek@redhat.com> - 1.8.1-1
- Update to 1.8.1