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:19:42 +03:00
parent 5a6ebd285b
commit d2be27177c

View File

@ -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@gmail.com> - 1:3.4.1-2
- Silence rpm scriptlet output
* Tue Apr 17 2012 Kalev Lember <kalevlember@gmail.com> - 1:3.4.1-1
- Update to 3.4.1