From patchwork Thu Jan 17 07:07:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/4] gtk-icon-cache.bbclass:fix support postrm at image creation time Date: Thu, 17 Jan 2013 07:07:19 -0000 From: Hongxu Jia X-Patchwork-Id: 42761 Message-Id: <4dc1347ed4057656a542263878aeeadf768dd2e9.1358406049.git.hongxu.jia@windriver.com> To: The gtk_icon_cache_postrm failed at image creation time because ${D} is not assigned as the prefix of icondir. [YOCTO #3633] Signed-off-by: Hongxu Jia --- meta/classes/gtk-icon-cache.bbclass | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk-icon-cache.bbclass index 7c7dd78..4499782 100644 --- a/meta/classes/gtk-icon-cache.bbclass +++ b/meta/classes/gtk-icon-cache.bbclass @@ -32,6 +32,15 @@ done } gtk_icon_cache_postrm() { +if [ "$D" != "" ]; then + for icondir in $D/usr/share/icons/* ; do + if [ -d $icondir ] ; then + gtk-update-icon-cache -qt $icondir + fi + done + exit 0 +fi + for icondir in /usr/share/icons/* ; do if [ -d $icondir ] ; then gtk-update-icon-cache -qt $icondir