diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2012-12-22 20:58:49 +0100 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2012-12-25 14:00:22 -0800 |
commit | 6c2962dc117304c542fd5458b39524ecdb81cae9 (patch) | |
tree | cdba224d9212309f5e0b92c0113623e535bc41fa /meta/classes | |
parent | 93048f1b3d7c1613e96b772f154336e5902228e4 (diff) | |
download | openembedded-core-6c2962dc117304c542fd5458b39524ecdb81cae9.tar.gz openembedded-core-6c2962dc117304c542fd5458b39524ecdb81cae9.tar.bz2 openembedded-core-6c2962dc117304c542fd5458b39524ecdb81cae9.zip |
gtk-icon-cache: don't call gtk-update-icon-cache on files
* check if icondir is directory before calling gtk-update-icon-cache, like all other calls do
* fixes:
| > Executing update_icon_cache
| + chmod +x update_icon_cache
| + ./update_icon_cache
| gtk-update-icon-cache.real: Failed to open file /tmp-eglibc/work/qemuarm-oe-linux-gnueabi/shr-image-all/2.0-r20/rootfs/usr/share/icons/enjoy.png/.icon-theme.cache : Not a directory
| gtk-update-icon-cache.real: Failed to open file /tmp-eglibc/work/qemuarm-oe-linux-gnueabi/shr-image-all/2.0-r20/rootfs/usr/share/icons/monav.png/.icon-theme.cache : Not a directory
| gtk-update-icon-cache.real: Failed to open file /tmp-eglibc/work/qemuarm-oe-linux-gnueabi/shr-image-all/2.0-r20/rootfs/usr/share/icons/orrery.png/.icon-theme.cache : Not a directory
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/gtk-icon-cache.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk-icon-cache.bbclass index f87a30fd5b..7c7dd78854 100644 --- a/meta/classes/gtk-icon-cache.bbclass +++ b/meta/classes/gtk-icon-cache.bbclass @@ -12,7 +12,9 @@ if [ "x$D" != "x" ]; then gdk-pixbuf-query-loaders --update-cache for icondir in $D/usr/share/icons/*/ ; do - gtk-update-icon-cache -fqt $icondir + if [ -d $icondir ] ; then + gtk-update-icon-cache -fqt $icondir + fi done EOF fi |