Patchwork [1/1] gdk-pixbuf: call gtk-update-icon-cache with -t in postinstall script

login
register
mail settings
Submitter jackie huang
Date Aug. 24, 2012, 1:29 p.m.
Message ID <df19e69901a7d4757923a441f3023e7f96e37115.1345711916.git.jackie.huang@windriver.com>
Download mbox | patch
Permalink /patch/35297/
State Accepted
Commit bab34e5fa734a98cb5199db4ebc95a6634a38431
Headers show

Comments

jackie huang - Aug. 24, 2012, 1:29 p.m.
From: Jackie Huang <jackie.huang@windriver.com>

gtk-update-icon-cache is called for each subdir of ${datadir}/icons,
but there are some themes without an index.theme file such as
xcursor-transparent, so add -t(--ignore-theme-index) option to avoid
errors of gtk-update-icon-cache.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
 meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb
index 159bdae..99f6cb4 100644
--- a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb
+++ b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb
@@ -21,7 +21,7 @@  SRC_URI = "http://ftp.acc.umu.se/pub/GNOME/sources/gdk-pixbuf/2.24/gdk-pixbuf-${
 SRC_URI[md5sum] = "72f39b34b20f68148c1609bd27415412"
 SRC_URI[sha256sum] = "da7a3f00db360913716368e19e336402755cafa93769f3cfa28a969303e4bee1"
 
-PR = "r5"
+PR = "r6"
 
 inherit autotools pkgconfig gettext
 
@@ -65,7 +65,7 @@  GDK_PIXBUF_MODULEDIR=${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders gdk-pixbuf-query-l
 if [ -x ${bindir}/gtk-update-icon-cache ] && [ -d ${datadir}/icons ]; then
     for icondir in /usr/share/icons/*; do
         if [ -d ${icondir} ]; then
-            gtk-update-icon-cache -q ${icondir}
+            gtk-update-icon-cache -t -q ${icondir}
         fi
     done
 fi