[gnome-bluetooth] Silence rpm scriptlet output
Kalev Lember
kalev at fedoraproject.org
Tue Apr 24 14:47:58 UTC 2012
commit 089f51072df80709c312e6d958140cfaf97e7879
Author: Kalev Lember <kalevlember at gmail.com>
Date: Tue Apr 24 17:47:33 2012 +0300
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 files 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 <kalevlember at gmail.com> - 1:3.4.0-2
+- Silence rpm scriptlet output
+
* Tue Mar 27 2012 Richard Hughes <hughsient at gmail.com> - 1:3.4.0-1
- Update to 3.4.0
More information about the scm-commits
mailing list