[telepathy-logger] Silence rpm scriptlet output

Kalev Lember kalev at fedoraproject.org
Tue Apr 24 16:54:56 UTC 2012


commit c17c2a05a08f8032358af523db9804e4f20f49f6
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Tue Apr 24 19:54:33 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

 telepathy-logger.spec |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/telepathy-logger.spec b/telepathy-logger.spec
index ecbaaea..8a7c663 100644
--- a/telepathy-logger.spec
+++ b/telepathy-logger.spec
@@ -1,6 +1,6 @@
 Name:           telepathy-logger
 Version:        0.4.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Telepathy framework logging daemon
 
 Group:          Applications/Communications
@@ -66,11 +66,11 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 
 %postun
 /sbin/ldconfig
-glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas ||:
+glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas &>/dev/null ||:
 
 
 %posttrans
-glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas ||:
+glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas &>/dev/null ||:
 
 
 %files
@@ -96,6 +96,9 @@ glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas ||:
 
 
 %changelog
+* Tue Apr 24 2012 Kalev Lember <kalevlember at gmail.com> - 0.4.0-2
+- Silence rpm scriptlet output
+
 * Thu Apr  5 2012 Brian Pepple <bpepple at fedoraproject.org> - 0.4.0-1
 - Update to 0.4.0.
 


More information about the scm-commits mailing list