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 19:44:51 +03:00
parent c46d2cdc47
commit d8b1d4c314

View File

@ -13,7 +13,7 @@
Name: nautilus Name: nautilus
Summary: File manager for GNOME Summary: File manager for GNOME
Version: 3.4.1 Version: 3.4.1
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ License: GPLv2+
Group: User Interface/Desktops Group: User Interface/Desktops
Source: http://download.gnome.org/sources/%{name}/3.3/%{name}-%{version}.tar.xz Source: http://download.gnome.org/sources/%{name}/3.3/%{name}-%{version}.tar.xz
@ -146,12 +146,12 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/.icon-theme.cache
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 || :
%files -f %{name}.lang %files -f %{name}.lang
%doc AUTHORS COPYING COPYING-DOCS COPYING.LIB NEWS README %doc AUTHORS COPYING COPYING-DOCS COPYING.LIB NEWS README
@ -185,6 +185,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
%doc %{_datadir}/gtk-doc/html/libnautilus-extension/* %doc %{_datadir}/gtk-doc/html/libnautilus-extension/*
%changelog %changelog
* Tue Apr 24 2012 Kalev Lember <kalevlember@gmail.com> - 3.4.1-2
- Silence rpm scriptlet output
* Mon Apr 16 2012 Richard Hughes <hughsient@gmail.com> - 3.4.1-1 * Mon Apr 16 2012 Richard Hughes <hughsient@gmail.com> - 3.4.1-1
- Update to 3.4.1 - Update to 3.4.1