diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-05-10 13:33:28 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-05-10 13:33:28 +0200 |
commit | bd47257c9e564e4d2a52c9454e082cc801c824d5 (patch) | |
tree | 12e5827229065d84f4f9368e73c934c83647d283 /abrt.spec.in | |
parent | 10281eda73645a42cf6fc28ecb8d42334c397efc (diff) | |
download | abrt-bd47257c9e564e4d2a52c9454e082cc801c824d5.tar.gz abrt-bd47257c9e564e4d2a52c9454e082cc801c824d5.tar.xz abrt-bd47257c9e564e4d2a52c9454e082cc801c824d5.zip |
spec: fixed updating icon cache according to Fedora policy (cailon)
Diffstat (limited to 'abrt.spec.in')
-rw-r--r-- | abrt.spec.in | 13 |
1 files 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,-) |