[gvfs/f15/master] Update gsettings scriptlet

Christopher Aillon caillon at fedoraproject.org
Sun May 8 02:42:28 UTC 2011


commit 96d5660faca41e1c2b3e27f76feee2deb3ef1e3b
Author: Christopher Aillon <caillon at redhat.com>
Date:   Sat May 7 19:41:16 2011 -0700

    Update gsettings scriptlet
    
    http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GSettings_Schema
    
    (don't compile schemas twice on updating the package, only once is sufficient)

 gvfs.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gvfs.spec b/gvfs.spec
index d8719c6..f84789d 100644
--- a/gvfs.spec
+++ b/gvfs.spec
@@ -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 at redhat.com> - 1.8.1-2
+- Update gsettings scriptlet
+
 * Tue Apr 26 2011 Tomas Bzatek <tbzatek at redhat.com> - 1.8.1-1
 - Update to 1.8.1
 


More information about the scm-commits mailing list