[vinagre/f17] Silence rpm scriptlet output

Kalev Lember kalev at fedoraproject.org
Tue Apr 24 17:12:46 UTC 2012


commit 8c4a218683645e2af6d98068653fcd044c19f34e
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Tue Apr 24 20:09:26 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

 vinagre.spec |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/vinagre.spec b/vinagre.spec
index a195374..695a9b0 100644
--- a/vinagre.spec
+++ b/vinagre.spec
@@ -4,7 +4,7 @@
 
 Name:           vinagre
 Version:        3.4.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        VNC client for GNOME
 
 Group:          Applications/System
@@ -98,14 +98,14 @@ touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 update-desktop-database &> /dev/null || :
 update-mime-database %{_datadir}/mime &> /dev/null || :
 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 || :
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 
 %files -f vinagre.lang
 %{_bindir}/vinagre
@@ -128,6 +128,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
 
 
 %changelog
+* Tue Apr 24 2012 Kalev Lember <kalevlember at gmail.com> - 3.4.1-2
+- Silence rpm scriptlet output
+
 * Tue Apr 17 2012 Kalev Lember <kalevlember at gmail.com> - 3.4.1-1
 - Update to 3.4.1
 - Dropped upstreamed translation patch


More information about the scm-commits mailing list