Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] pixbufcache.bbclass: Fix setscene silent failures
@ 2014-03-31 22:08 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-03-31 22:08 UTC (permalink / raw)
  To: openembedded-core

Unfortunately gdk-pixbuf-query-loaders can issue errors but still return
success. We therefore check for output and error in the case any output
is issued (normal success does not issue any).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
Ross: I'm open to better patches ;-)
[I wrote this to debug other problems]

diff --git a/meta/classes/pixbufcache.bbclass b/meta/classes/pixbufcache.bbclass
index 414fd30..88da734 100644
--- a/meta/classes/pixbufcache.bbclass
+++ b/meta/classes/pixbufcache.bbclass
@@ -53,7 +53,11 @@ SSTATEPOSTINSTFUNCS_append_class-native = " pixbufcache_sstate_postinst"
 pixbufcache_sstate_postinst() {
 	if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]
 	then
-		gdk-pixbuf-query-loaders --update-cache
+		T=`gdk-pixbuf-query-loaders --update-cache 2>&1`
+		if [ -n "$T" ]; then 
+			echo $T
+			exit 1
+		fi
 	fi
 }
 




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-31 22:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-31 22:08 [PATCH] pixbufcache.bbclass: Fix setscene silent failures Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox