From 089f51072df80709c312e6d958140cfaf97e7879 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 24 Apr 2012 17:47:33 +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 --- gnome-bluetooth.spec | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/gnome-bluetooth.spec b/gnome-bluetooth.spec index adb61c1..50c3074 100644 --- a/gnome-bluetooth.spec +++ b/gnome-bluetooth.spec @@ -1,7 +1,7 @@ Name: gnome-bluetooth Epoch: 1 Version: 3.4.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Bluetooth graphical utilities Group: Applications/Communications @@ -89,10 +89,10 @@ install -m0644 -D %{SOURCE1} $RPM_BUILD_ROOT/lib/udev/rules.d/61-gnome-bluetooth cat %{name}.lang >> gnome-bluetooth2.lang %post -update-desktop-database -q +update-desktop-database &>/dev/null || : %posttrans -glib-compile-schemas %{_datadir}/glib-2.0/schemas || : +glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : %pre if [ "$1" -gt 1 ]; then @@ -123,10 +123,10 @@ if [ "$1" -eq 0 ]; then fi %postun -update-desktop-database -q -glib-compile-schemas %{_datadir}/glib-2.0/schemas || : +update-desktop-database &>/dev/null || : +glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/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 || : fi @@ -178,6 +178,9 @@ fi %{_datadir}/gtk-doc %changelog +* Tue Apr 24 2012 Kalev Lember - 1:3.4.0-2 +- Silence rpm scriptlet output + * Tue Mar 27 2012 Richard Hughes - 1:3.4.0-1 - Update to 3.4.0