[gnome-system-log] Silence rpm scriptlet output

Kalev Lember kalev at fedoraproject.org
Tue Apr 24 15:38:10 UTC 2012


commit 3c3e139340707e2241e7877864122bb19f0c786c
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Tue Apr 24 18:37:12 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-system-log.spec |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gnome-system-log.spec b/gnome-system-log.spec
index d7590e5..4e386d1 100644
--- a/gnome-system-log.spec
+++ b/gnome-system-log.spec
@@ -1,6 +1,6 @@
 Name:           gnome-system-log
 Version:        3.4.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Epoch:          1
 Summary:        A log file viewer for GNOME
 
@@ -62,12 +62,12 @@ touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
 if [ $1 -eq 0 ]; then
   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 || :
 
 %files -f %{name}.lang
 %doc COPYING COPYING.docs
@@ -82,6 +82,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas
 %doc %{_mandir}/man1/gnome-system-log.1.gz
 
 %changelog
+* Tue Apr 24 2012 Kalev Lember <kalevlember at gmail.com> - 1:3.4.1-2
+- Silence rpm scriptlet output
+
 * Mon Apr 16 2012 Richard Hughes <hughsient at gmail.com> - 1:3.4.1-1
 - Update to 3.4.1
 


More information about the scm-commits mailing list