[tracker/f17] Silence glib-compile-schemas output in rpm scripts
Kalev Lember
kalev at fedoraproject.org
Tue Apr 24 17:01:59 UTC 2012
commit be078e2b54e7502b6e8c89e458eac07bf70f94df
Author: Kalev Lember <kalevlember at gmail.com>
Date: Tue Apr 24 20:00:28 2012 +0300
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 files 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 <kalevlember at gmail.com> - 0.14.0-2
+- Silence glib-compile-schemas output in rpm scripts
+
* Thu Mar 08 2012 Deji Akingunola <dakingun at gmail.com> - 0.14.0-1
- Update to 0.14.0
More information about the scm-commits
mailing list