From 2ecce743ec436e5835bf6292004213eb1c0c1707 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Dec 15 2005 17:52:41 +0000 Subject: use handier loop for icon handling --- diff --git a/kile.spec b/kile.spec index 1e74d9a..db90e93 100644 --- a/kile.spec +++ b/kile.spec @@ -96,13 +96,17 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/apps/katepart %post -touch --no-create %{_datadir}/icons/hicolor ||: -gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||: +for icon_theme in hicolor ; do + touch --no-create %{_datadir}/icons/${icon_theme} ||: + gtk-update-icon-cache -q %{_datadir}/icons/${icon_theme} 2> /dev/null ||: +done update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %postun -touch --no-create %{_datadir}/icons/hicolor ||: -gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||: +for icon_theme in hicolor ; do + touch --no-create %{_datadir}/icons/${icon_theme} ||: + gtk-update-icon-cache -q %{_datadir}/icons/${icon_theme} 2> /dev/null ||: +done update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :