From 540cfd5d945cb593af20ab4ffac950ab9925ea3a Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 24 Apr 2012 20:00:28 +0300 Subject: [PATCH] Silence glib-compile-schemas output in rpm scripts Redirect it to /dev/null; end users aren't supposed to see the warnings generated by glib-compile-schemas. http://fedoraproject.org/wiki/Packaging:ScriptletSnippets --- tracker.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tracker.spec b/tracker.spec index 3e24eb3..c584624 100644 --- a/tracker.spec +++ b/tracker.spec @@ -1,7 +1,7 @@ Summary: Desktop-neutral search tool and indexer Name: tracker Version: 0.14.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: Applications/System URL: http://projects.gnome.org/tracker/ @@ -163,7 +163,7 @@ fi %postun /sbin/ldconfig if [ $1 -eq 0 ]; then - glib-compile-schemas %{_datadir}/glib-2.0/schemas || : + glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : fi %postun ui-tools @@ -173,7 +173,7 @@ if [ -x %{_bindir}/gtk-update-icon-cache ]; then fi %posttrans -glib-compile-schemas %{_datadir}/glib-2.0/schemas || : +glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : %files -f %{name}.lang %defattr(-, root, root, -) @@ -252,6 +252,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas || : %{_datadir}/gtk-doc/html/ontology/ %changelog +* Tue Apr 24 2012 Kalev Lember - 0.14.0-2 +- Silence glib-compile-schemas output in rpm scripts + * Thu Mar 08 2012 Deji Akingunola - 0.14.0-1 - Update to 0.14.0