aboutsummaryrefslogtreecommitdiffstats
path: root/macros.in
diff options
context:
space:
mode:
Diffstat (limited to 'macros.in')
-rw-r--r--macros.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/macros.in b/macros.in
index aee95f0..57b5cf6 100644
--- a/macros.in
+++ b/macros.in
@@ -205,7 +205,8 @@ then %{_update_mime_database_bin} %{_datadir}/mime > /dev/null || true ; fi \
%{_update_icon_cache_bin} --force --quiet %{_iconsdir}/%{1} || true; fi \
%{nil}
-%clean_icon_cache() if [ -x %{_update_icon_cache_bin} ]; then \
+%clean_icon_cache() if [ -x %{_update_icon_cache_bin} -a -r \
+%{_iconsdir}/%{1}/index.theme ]; then \
%{_update_icon_cache_bin} --force --quiet %{_iconsdir}/%{1} || true ; fi \
%{nil}