[yelp] Silence rpm scriptlet output

Kalev Lember kalev at fedoraproject.org
Tue Apr 24 17:20:02 UTC 2012


commit d2be27177c4f17089e3cb40c2f4f66bb5e830e88
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Tue Apr 24 20:19:42 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

 yelp.spec |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/yelp.spec b/yelp.spec
index 9534956..768ec4b 100644
--- a/yelp.spec
+++ b/yelp.spec
@@ -2,7 +2,7 @@ Summary: Help browser for the GNOME desktop
 Name: yelp
 Epoch: 1
 Version: 3.4.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 #VCS: git:git://git.gnome.org/yelp
 Source: http://download.gnome.org/sources/yelp/3.4/%{name}-%{version}.tar.xz
 
@@ -88,13 +88,13 @@ touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
 %postun
 update-desktop-database &> /dev/null ||:
 if [ $1 -eq 0 ]; then
-  glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
+  glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null ||:
   touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
   gtk-update-icon-cache %{_datadir}icons/hicolor &> /dev/null || :
 fi
 
 %posttrans
-glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null ||:
 gtk-update-icon-cache %{_datadir}icons/hicolor &> /dev/null || :
 
 
@@ -117,6 +117,9 @@ gtk-update-icon-cache %{_datadir}icons/hicolor &> /dev/null || :
 
 
 %changelog
+* Tue Apr 24 2012 Kalev Lember <kalevlember at gmail.com> - 1:3.4.1-2
+- Silence rpm scriptlet output
+
 * Tue Apr 17 2012 Kalev Lember <kalevlember at gmail.com> - 1:3.4.1-1
 - Update to 3.4.1
 


More information about the scm-commits mailing list