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 17:38:09 +03:00
parent 52b50b04fe
commit 67c9eaa60e

View File

@ -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 <kalevlember@gmail.com> - 3.4.0-2
- Silence rpm scriptlet output
* Mon Mar 26 2012 Ignacio Casal Quinteiro <icq@gnome.org> - 3.4.0-1
- Update to 3.4.0