From 1f2ec231f4c96d6d30ee134b8f15470cd9b2d410 Mon Sep 17 00:00:00 2001 From: Leonardo Boshell Date: Thu, 8 Sep 2005 17:19:22 +0000 Subject: * gnome2.eclass: (gnome2_icon_cache_update): Only run gtk-update-icon-cache on directories with an index.theme file (bug #105256). --- eclass/gnome2.eclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'eclass') diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass index 6718cff13d05..616959f1e907 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.61 2005/08/23 03:51:03 leonardop Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.62 2005/09/08 17:19:22 leonardop Exp $ # # Authors: # Bruce A. Locke @@ -132,7 +132,9 @@ gnome2_icon_cache_update() { local retval=0 for dir in \ $(find ${ROOT}/usr/share/icons -maxdepth 1 -mindepth 1 -type d); do - $updater -qf $dir || retval=$? + if [ -f "${dir}/index.theme" ]; then + $updater -qf $dir || retval=$? + fi done eend $retval -- cgit v1.2.3-65-gdbad