mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
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 (From OE-Core rev: 6c2962dc117304c542fd5458b39524ecdb81cae9) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
36f8380773
commit
9dc384ddfb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user