From 67c9eaa60e0cd5a18df22bd053dff5e19c018e8a Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 24 Apr 2012 17:38:09 +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 --- gedit-plugins.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gedit-plugins.spec b/gedit-plugins.spec index 1fa0e26..a9e57c6 100644 --- a/gedit-plugins.spec +++ b/gedit-plugins.spec @@ -1,6 +1,6 @@ Name: gedit-plugins Version: 3.4.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Plugins for gedit Group: Applications/Editors @@ -46,12 +46,12 @@ find $RPM_BUILD_ROOT/%{_libdir}/gedit/plugins -name "*.la" -exec rm {} \; %postun if [ $1 -eq 0 ]; then - glib-compile-schemas %{_datadir}/glib-2.0/schemas || : + glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : fi %posttrans -glib-compile-schemas %{_datadir}/glib-2.0/schemas || : +glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : %check @@ -69,6 +69,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas || : %changelog +* Tue Apr 24 2012 Kalev Lember - 3.4.0-2 +- Silence rpm scriptlet output + * Mon Mar 26 2012 Ignacio Casal Quinteiro - 3.4.0-1 - Update to 3.4.0