[vino/f17] Silence rpm scriptlet output

Kalev Lember kalev at fedoraproject.org
Tue Apr 24 17:15:19 UTC 2012


commit 0a954ce04edcd021e0701ad0e8f08847b8584a0c
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Tue Apr 24 20:14:49 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

 vino.spec |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/vino.spec b/vino.spec
index 4718106..4c8fe31 100644
--- a/vino.spec
+++ b/vino.spec
@@ -5,7 +5,7 @@
 Summary: A remote desktop system for GNOME
 Name: vino
 Version: 3.4.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 URL: http://www.gnome.org
 #VCS: git:git://git.gnome.org/vino
 Source0: http://download.gnome.org/sources/vino/3.4/%{name}-%{version}.tar.xz
@@ -74,12 +74,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
@@ -96,6 +96,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
 %{_datadir}/GConf/gsettings/org.gnome.Vino.convert
 
 %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
 


More information about the scm-commits mailing list