summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2013-01-17 20:56:37 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-28 12:29:29 +0000
commit92209ae0cb4f6daa04536ff6fecbeec0afcbfe87 (patch)
tree71a6a5978ce3f41d6ff3616923d903e413d4d26e /meta
parent15aa7134826bcdd54f548454991d531d9db3b3b3 (diff)
downloadpoky-92209ae0cb4f6daa04536ff6fecbeec0afcbfe87.tar.gz
gtk-icon-cache.bbclass:fix support postrm at image creation time
When use postrm on the build machine, it installs the hook in intercept-scripts directory and exit 0, the hook will be later invoked and it will properly call gtk-update-icon-cache. [YOCTO #3633] (From OE-Core rev: 6ae0b8339134300d0c179bd47dc3062e0e1f2f0b) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/gtk-icon-cache.bbclass18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk-icon-cache.bbclass
index 7c7dd78854..d5fdcd521d 100644
--- a/meta/classes/gtk-icon-cache.bbclass
+++ b/meta/classes/gtk-icon-cache.bbclass
@@ -32,6 +32,24 @@ done
32} 32}
33 33
34gtk_icon_cache_postrm() { 34gtk_icon_cache_postrm() {
35if [ "x$D" != "x" ]; then
36 if [ ! -f $INTERCEPT_DIR/update_icon_cache ]; then
37 cat << "EOF" > $INTERCEPT_DIR/update_icon_cache
38#!/bin/sh
39
40# update native pixbuf loaders
41gdk-pixbuf-query-loaders --update-cache
42
43for icondir in $D/usr/share/icons/*/ ; do
44 if [ -d $icondir ] ; then
45 gtk-update-icon-cache -fqt $icondir
46 fi
47done
48EOF
49 fi
50 exit 0
51fi
52
35for icondir in /usr/share/icons/* ; do 53for icondir in /usr/share/icons/* ; do
36 if [ -d $icondir ] ; then 54 if [ -d $icondir ] ; then
37 gtk-update-icon-cache -qt $icondir 55 gtk-update-icon-cache -qt $icondir