From 1af128cfb6f6097be0bf8fe50b7b50e1105b9df0 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm <rt@openoffice.org> Date: Mon, 6 Feb 2006 15:39:58 +0000 Subject: INTEGRATION: CWS cloph02 (1.11.22); FILE MERGED 2006/01/14 01:32:35 cloph 1.11.22.2: Issue number: #i57871# Submitted by: cloph Don't assume the script can find the binary to update the icon-cache.. Check for existence of the cache, then touch the theme-dir to invalidate the cache and then try to update the cache. 2005/12/17 12:15:40 cloph 1.11.22.1: Issue number: #i57871# Submitted by: cloph --- sysui/desktop/mandriva/mandriva-menus.spec | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'sysui') diff --git a/sysui/desktop/mandriva/mandriva-menus.spec b/sysui/desktop/mandriva/mandriva-menus.spec index d41405877d18..546935edc177 100644 --- a/sysui/desktop/mandriva/mandriva-menus.spec +++ b/sysui/desktop/mandriva/mandriva-menus.spec @@ -184,6 +184,17 @@ EOF chmod 0755 /usr/bin/%unixfilename fi fi + for theme in gnome hicolor locolor; do + if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then + # touch it, just in case we cannot find the binary... + touch /usr/share/icons/$theme + if (which gtk-update-icon-cache); then + gtk-update-icon-cache /usr/share/icons/$theme + fi + # ignore errors (e.g. when there is a cache, but no index.theme) + true + fi + done fi %{update_menus} @@ -289,7 +300,17 @@ fi %postun %{update_menus} - +for theme in gnome hicolor locolor; do + if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then + # touch it, just in case we cannot find the binary... + touch /usr/share/icons/$theme + if (which gtk-update-icon-cache); then + gtk-update-icon-cache /usr/share/icons/$theme + fi + # ignore errors (e.g. when there is a cache, but no index.theme) + true + fi +done %files %attr(0755,root,root) /usr/bin/soffice -- cgit