aboutsummaryrefslogtreecommitdiffstats
path: root/macros.in
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2006-07-28 15:35:00 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2006-07-28 15:35:00 +0000
commit29c431ec6835e184eaee3e04c817cabd55b97a48 (patch)
tree8c2b105f01836525a10a942d6a1e096d2c283995 /macros.in
parent6fac6fcc2e22d4a13420810992f58ad6d2663e7b (diff)
downloadrpm-setup-29c431ec6835e184eaee3e04c817cabd55b97a48.tar
rpm-setup-29c431ec6835e184eaee3e04c817cabd55b97a48.tar.gz
rpm-setup-29c431ec6835e184eaee3e04c817cabd55b97a48.tar.bz2
rpm-setup-29c431ec6835e184eaee3e04c817cabd55b97a48.tar.xz
rpm-setup-29c431ec6835e184eaee3e04c817cabd55b97a48.zip
- apply patch fixing #23980 (%clean_icon_cache will fail for icon theme packages) from G. Waschk
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}