[evolution] Silence rpm scriptlet output

Kalev Lember kalev at fedoraproject.org
Tue Apr 24 17:44:40 UTC 2012


commit 65525771b1d3583c6370ab8595f33128d10a1f57
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Tue Apr 24 20:29:56 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

 evolution.spec |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/evolution.spec b/evolution.spec
index b4f1ef9..2b793dc 100644
--- a/evolution.spec
+++ b/evolution.spec
@@ -27,7 +27,7 @@
 
 Name: evolution
 Version: 3.4.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 Group: Applications/Productivity
 Summary: Mail and calendar client for GNOME
 License: GPLv2+ and GFDL
@@ -329,14 +329,14 @@ touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 %postun
 /sbin/ldconfig
 if [ $1 -eq 0 ] ; then
-    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
     gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-    glib-compile-schemas %{_datadir}/glib-2.0/schemas
+    glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 fi
 
 %posttrans
 gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-glib-compile-schemas %{_datadir}/glib-2.0/schemas
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -572,6 +572,9 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Tue Apr 24 2012 Kalev Lember <kalevlember at gmail.com> - 3.4.1-2
+- Silence rpm scriptlet output
+
 * Mon Apr 16 2012 Milan Crha <mcrha at redhat.com> - 3.4.1-1
 - Update to 3.4.1
 


More information about the scm-commits mailing list