From bd47257c9e564e4d2a52c9454e082cc801c824d5 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Tue, 10 May 2011 13:33:28 +0200 Subject: spec: fixed updating icon cache according to Fedora policy (cailon) --- abrt.spec.in | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/abrt.spec.in b/abrt.spec.in index 034fc918..6c7f2900 100644 --- a/abrt.spec.in +++ b/abrt.spec.in @@ -393,19 +393,16 @@ fi %post gui # update icon cache -touch --no-create %{_datadir}/icons/hicolor || : -if [ -x %{_bindir}/gtk-update-icon-cache ]; then - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : -fi +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %postun gui -touch --no-create %{_datadir}/icons/hicolor || : -if [ -x %{_bindir}/gtk-update-icon-cache ]; then - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans @@ -441,6 +438,8 @@ if [ "$1" -eq "0" ]; then fi %endif +%posttrans gui +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang %defattr(-,root,root,-) -- cgit