summaryrefslogtreecommitdiffstats
path: root/abrt.spec.in
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2011-05-10 13:33:28 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2011-05-10 13:33:28 +0200
commitbd47257c9e564e4d2a52c9454e082cc801c824d5 (patch)
tree12e5827229065d84f4f9368e73c934c83647d283 /abrt.spec.in
parent10281eda73645a42cf6fc28ecb8d42334c397efc (diff)
downloadabrt-bd47257c9e564e4d2a52c9454e082cc801c824d5.zip
abrt-bd47257c9e564e4d2a52c9454e082cc801c824d5.tar.gz
abrt-bd47257c9e564e4d2a52c9454e082cc801c824d5.tar.xz
spec: fixed updating icon cache according to Fedora policy (cailon)
Diffstat (limited to 'abrt.spec.in')
-rw-r--r--abrt.spec.in13
1 files changed, 6 insertions, 7 deletions
diff --git a/abrt.spec.in b/abrt.spec.in
index 034fc91..6c7f290 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,-)