* gnome2.eclass: (gnome2_icon_cache_update): Only run gtk-update-icon-cache
authorLeonardo Boshell <leonardop@gentoo.org>
Thu, 8 Sep 2005 17:19:22 +0000 (17:19 +0000)
committerLeonardo Boshell <leonardop@gentoo.org>
Thu, 8 Sep 2005 17:19:22 +0000 (17:19 +0000)
  on directories with an index.theme file (bug #105256).

eclass/gnome2.eclass

index 6718cff13d058c72a086a89c8750fafa23d4423e..616959f1e9070aeebdf7b94919a96967538f9eb0 100644 (file)
@@ -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 <blocke@shivan.org>
@@ -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