Mercurial > pidgin
changeset 22375:d8858b8a3d8b
Silence errors during RPM installation when gtk-update-icon-cache does not
exist
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 28 Feb 2008 21:38:05 +0000 |
parents | 29c6056257c0 |
children | 4512cb14cf29 |
files | pidgin.spec.in |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin.spec.in Thu Feb 28 19:08:30 2008 +0000 +++ b/pidgin.spec.in Thu Feb 28 21:38:05 2008 +0000 @@ -327,7 +327,9 @@ killall -HUP gconfd-2 &> /dev/null || : fi touch --no-create %{_datadir}/icons/hicolor || : -%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &> /dev/null || : +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &> /dev/null || : +fi %post -n libpurple -p /sbin/ldconfig @@ -343,7 +345,9 @@ %postun touch --no-create %{_datadir}/icons/hicolor || : -%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &> /dev/null || : +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &> /dev/null || : +fi %postun -n libpurple -p /sbin/ldconfig