aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-10 09:49:24 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-10 09:49:24 +0000
commit6cfff7672621c7516fd04ae7f1dbe4801193c59f (patch)
tree2bb474aac8f6cbc9c6a62d5f9cec40204d64289a
parentafd8ef85ed3f30e34296f30ce8760bbea60a4719 (diff)
downloadrpm-setup-6cfff7672621c7516fd04ae7f1dbe4801193c59f.tar
rpm-setup-6cfff7672621c7516fd04ae7f1dbe4801193c59f.tar.gz
rpm-setup-6cfff7672621c7516fd04ae7f1dbe4801193c59f.tar.bz2
rpm-setup-6cfff7672621c7516fd04ae7f1dbe4801193c59f.tar.xz
rpm-setup-6cfff7672621c7516fd04ae7f1dbe4801193c59f.zip
1.83: intelligent %update_icon_cache/%clean_icon_cache which are null for
caches handled through filetriggers, but as used to be for other caches
-rw-r--r--build.macros.in17
-rw-r--r--configure.ac2
2 files changed, 16 insertions, 3 deletions
diff --git a/build.macros.in b/build.macros.in
index 6d7d2c3..be64ef2 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -86,8 +86,6 @@ Group: %{group}\
%clean_desktop_database %{nil}
%update_mime_database %{nil}
%clean_mime_database %{nil}
-%update_icon_cache() %{nil}
-%clean_icon_cache() %{nil}
%update_scrollkeeper %{nil}
%clean_scrollkeeper %{nil}
@@ -106,6 +104,21 @@ Group: %{group}\
%clean_gcjdb if [ -x %{_rebuildgcjdb_bin} ]; then %{_rebuildgcjdb_bin} || true ; fi \
%{nil}
+# Rebuild icon cache
+#
+# following themes are handled through filetriggers:
+%define icon_cache_through_filetrigger_hicolor 1
+%define icon_cache_through_filetrigger_gnome 1
+%define icon_cache_through_filetrigger_oxygen 1
+
+%define update_icon_cache() %{expand: %%{!?icon_cache_through_filetrigger_%1:if [ -x %%{_update_icon_cache_bin} ]; then \
+%%{_update_icon_cache_bin} --force --quiet %%{_iconsdir}/%%{1} || true; fi \
+%%{nil}}}
+
+%define clean_icon_cache() %{expand: %%{!?icon_cache_through_filetrigger_%1:if [ -x %%{_update_icon_cache_bin} -a -r %%{_iconsdir}/%%{1}/index.theme ]; then \
+%%{_update_icon_cache_bin} --force --quiet %%{_iconsdir}/%%{1} || true ; fi \
+%%{nil}}}
+
# GConf schemas:
# installation is handled by filetriggers
%post_install_gconf_schemas() %{nil}
diff --git a/configure.ac b/configure.ac
index ab6548a..656843d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,7 +4,7 @@
# $Id$
AC_PREREQ(2.59)
-AC_INIT(rpm-mandriva-setup, 1.82, nanardon@mandriva.org)
+AC_INIT(rpm-mandriva-setup, 1.83, nanardon@mandriva.org)
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE(1.9)
AC_CONFIG_SRCDIR