comparison pidgin.spec.in @ 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 e9f94dd202c8
children 4512cb14cf29
comparison
equal deleted inserted replaced
22374:29c6056257c0 22375:d8858b8a3d8b
325 gconftool-2 --makefile-install-rule \ 325 gconftool-2 --makefile-install-rule \
326 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || : 326 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || :
327 killall -HUP gconfd-2 &> /dev/null || : 327 killall -HUP gconfd-2 &> /dev/null || :
328 fi 328 fi
329 touch --no-create %{_datadir}/icons/hicolor || : 329 touch --no-create %{_datadir}/icons/hicolor || :
330 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &> /dev/null || : 330 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
331 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &> /dev/null || :
332 fi
331 333
332 %post -n libpurple -p /sbin/ldconfig 334 %post -n libpurple -p /sbin/ldconfig
333 335
334 %post -n finch -p /sbin/ldconfig 336 %post -n finch -p /sbin/ldconfig
335 337
341 killall -HUP gconfd-2 &> /dev/null || : 343 killall -HUP gconfd-2 &> /dev/null || :
342 fi 344 fi
343 345
344 %postun 346 %postun
345 touch --no-create %{_datadir}/icons/hicolor || : 347 touch --no-create %{_datadir}/icons/hicolor || :
346 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &> /dev/null || : 348 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
349 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &> /dev/null || :
350 fi
347 351
348 %postun -n libpurple -p /sbin/ldconfig 352 %postun -n libpurple -p /sbin/ldconfig
349 353
350 %postun -n finch -p /sbin/ldconfig 354 %postun -n finch -p /sbin/ldconfig
351 355