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
This commit is contained in:
Kalev Lember 2012-04-24 20:29:56 +03:00
parent 3006e46b6c
commit 65525771b1

View File

@ -27,7 +27,7 @@
Name: evolution Name: evolution
Version: 3.4.1 Version: 3.4.1
Release: 1%{?dist} Release: 2%{?dist}
Group: Applications/Productivity Group: Applications/Productivity
Summary: Mail and calendar client for GNOME Summary: Mail and calendar client for GNOME
License: GPLv2+ and GFDL License: GPLv2+ and GFDL
@ -329,14 +329,14 @@ touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun %postun
/sbin/ldconfig /sbin/ldconfig
if [ $1 -eq 0 ] ; then 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 || : 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 fi
%posttrans %posttrans
gtk-update-icon-cache %{_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 || :
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -572,6 +572,9 @@ rm -rf $RPM_BUILD_ROOT
%endif %endif
%changelog %changelog
* Tue Apr 24 2012 Kalev Lember <kalevlember@gmail.com> - 3.4.1-2
- Silence rpm scriptlet output
* Mon Apr 16 2012 Milan Crha <mcrha@redhat.com> - 3.4.1-1 * Mon Apr 16 2012 Milan Crha <mcrha@redhat.com> - 3.4.1-1
- Update to 3.4.1 - Update to 3.4.1