From d2be27177c4f17089e3cb40c2f4f66bb5e830e88 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 24 Apr 2012 20:19:42 +0300 Subject: [PATCH] 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 file 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 - 1:3.4.1-2 +- Silence rpm scriptlet output + * Tue Apr 17 2012 Kalev Lember - 1:3.4.1-1 - Update to 3.4.1