[gnome-contacts/f17] Silence rpm scriptlet output

Kalev Lember kalev at fedoraproject.org
Tue Apr 24 14:50:31 UTC 2012


commit 9d4698ff4c11eecdd9215323e93bd1675020762e
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Tue Apr 24 17:50:00 2012 +0300

    Silence rpm scriptlet output
    
    Redirect it to /dev/null; end users aren't supposed to see the warnings
    generated by e.g. glib-compile-schemas.
    
    http://fedoraproject.org/wiki/Packaging:ScriptletSnippets

 gnome-contacts.spec |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gnome-contacts.spec b/gnome-contacts.spec
index 7ff63c6..420e2e2 100644
--- a/gnome-contacts.spec
+++ b/gnome-contacts.spec
@@ -1,6 +1,6 @@
 Name:           gnome-contacts
 Version:        3.4.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Contacts manager for GNOME
 
 License:        GPLv2+
@@ -35,11 +35,11 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
 
 %postun
 if [ $1 -eq 0 ]; then
-  glib-compile-schemas %{_datadir}/glib-2.0/schemas
+  glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 fi
 
 %posttrans
-glib-compile-schemas %{_datadir}/glib-2.0/schemas
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 
 %files -f %{name}.lang
 %doc AUTHORS COPYING README NEWS TODO ChangeLog
@@ -49,6 +49,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas
 
 
 %changelog
+* Tue Apr 24 2012 Kalev Lember <kalevlember at gmail.com> - 3.4.0-2
+- Silence rpm scriptlet output
+
 * Tue Mar 27 2012 Richard Hughes <hughsient at gmail.com> - 3.4.0-1
 - Update to 3.4.0
 


More information about the scm-commits mailing list