[gvfs] Silence rpm scriptlet output
Kalev Lember
kalev at fedoraproject.org
Tue Apr 24 15:47:00 UTC 2012
commit 1fc2ac4389bf45c01ecf19c5cce81db9af033562
Author: Kalev Lember <kalevlember at gmail.com>
Date: Tue Apr 24 18:46:37 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
gvfs.spec | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gvfs.spec b/gvfs.spec
index 77dd1d7..0be41a7 100644
--- a/gvfs.spec
+++ b/gvfs.spec
@@ -1,7 +1,7 @@
Summary: Backends for the gio framework in GLib
Name: gvfs
Version: 1.12.1
-Release: 2%{?dist}
+Release: 3%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gtk.org
@@ -177,18 +177,18 @@ rm $RPM_BUILD_ROOT%{_libdir}/gio/modules/*.la
# Reload .mount files:
killall -USR1 gvfsd >&/dev/null || :
update-desktop-database &> /dev/null || :
-gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules || :
+gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules &> /dev/null || :
%postun
/sbin/ldconfig
update-desktop-database &> /dev/null ||:
-gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules || :
+gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules &> /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 || :
fi
%posttrans
-glib-compile-schemas %{_datadir}/glib-2.0/schemas || :
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
# Reload .mount files when single subpackage is installed:
@@ -318,6 +318,9 @@ killall -USR1 gvfsd >&/dev/null || :
%{_datadir}/gvfs/mounts/afp-browse.mount
%changelog
+* Tue Apr 24 2012 Kalev Lember <kalevlember at gmail.com> - 1.12.1-3
+- Silence rpm scriptlet output
+
* Wed Apr 18 2012 Kalev Lember <kalevlember at gmail.com> - 1.12.1-2
- Rebuild again for new libimobiledevice and usbmuxd
More information about the scm-commits
mailing list