diff options
author | Leonardo Boshell <leonardop@gentoo.org> | 2005-07-20 16:30:36 +0000 |
---|---|---|
committer | Leonardo Boshell <leonardop@gentoo.org> | 2005-07-20 16:30:36 +0000 |
commit | 3f02d79566137823dd3900a9a6e8f5e611eb3a8e (patch) | |
tree | b2b127435f2a5a01ae715f202069997a412bd808 /eclass/gnome2.eclass | |
parent | stable on amd64 (diff) | |
download | gentoo-2-3f02d79566137823dd3900a9a6e8f5e611eb3a8e.tar.gz gentoo-2-3f02d79566137823dd3900a9a6e8f5e611eb3a8e.tar.bz2 gentoo-2-3f02d79566137823dd3900a9a6e8f5e611eb3a8e.zip |
* gnome2_icon_cache_update(), gnome2_pkg_postinst(), gnome2_pkg_postrm():
New function to update the icon cache files under /usr/share/icons/* (bug
#92289).
Diffstat (limited to 'eclass/gnome2.eclass')
-rw-r--r-- | eclass/gnome2.eclass | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass index fc85bb1578f7..a75b82cb4b14 100644 --- a/eclass/gnome2.eclass +++ b/eclass/gnome2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.53 2005/07/11 15:08:06 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.54 2005/07/20 16:30:36 leonardop Exp $ # # Authors: # Bruce A. Locke <blocke@shivan.org> @@ -108,6 +108,25 @@ gnome2_gconf_uninstall() { } +gnome2_icon_cache_update() { + local updater=`which gtk-update-icon-cache` + if ! grep -q "obj /usr/share/icons" ${ROOT}/var/db/pkg/*/${PF}/CONTENTS \ + || [ ! -x "$updater" ]; then + # Nothing to update + return + fi + + ebegin "Updating icons cache" + + local retval=0 + for dir in \ + $(find ${ROOT}/usr/share/icons -maxdepth 1 -mindepth 1 -type d); do + $updater -qf $dir || retval=$? + done + + eend $retval +} + gnome2_omf_fix() { # workaround/patch against omf.make or omf-install/Makefile.in @@ -152,6 +171,7 @@ gnome2_pkg_postinst() { gnome2_scrollkeeper_update fdo-mime_desktop_database_update fdo-mime_mime_database_update + gnome2_icon_cache_update } @@ -166,6 +186,7 @@ gnome2_pkg_postrm() { gnome2_scrollkeeper_update fdo-mime_desktop_database_update fdo-mime_mime_database_update + gnome2_icon_cache_update } |