]> code.ossystems Code Review - openembedded-core.git/commitdiff
gtk-icon-cache.bbclass: add -f option to gtk-update-icon-cache in postinst
authorSteve Sakoman <steve@sakoman.com>
Sat, 7 Jan 2012 04:51:53 +0000 (20:51 -0800)
committerSaul Wold <sgw@linux.intel.com>
Tue, 10 Jan 2012 05:51:50 +0000 (21:51 -0800)
The gtk-update-icon-cache utility does not create a cache file if
one does not already exist.  Since some packages (notably gnome-icon-theme)
do not ship a cache file by default, the results of the utility are
not saved.  Adding the force option writes out the cache even if there
wasn't a default cache in the package.

Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/gtk-icon-cache.bbclass

index eac3061b0a35202cb8531b5dccf5726488ce90c8..0204fd3fec3b2b92c3e3332b83d82d80fd779809 100644 (file)
@@ -14,7 +14,7 @@ GDK_PIXBUF_MODULEDIR=${libdir}/gdk-pixbuf-2.0/2.10.0/loaders gdk-pixbuf-query-lo
 
 for icondir in /usr/share/icons/* ; do
     if [ -d $icondir ] ; then
-        gtk-update-icon-cache -qt  $icondir
+        gtk-update-icon-cache -fqt  $icondir
     fi
 done
 }