[oe-commits] Richard Purdie : pixbufcache.bbclass: Fix setscene silent failures
git at git.openembedded.org
git at git.openembedded.org
Tue Apr 1 11:05:58 UTC 2014
Module: openembedded-core.git
Branch: master-next
Commit: 35235d25626de9786a660649a22cf7ecc3d91684
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=35235d25626de9786a660649a22cf7ecc3d91684
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Mon Mar 31 23:08:54 2014 +0100
pixbufcache.bbclass: Fix setscene silent failures
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 at linuxfoundation.org>
---
meta/classes/pixbufcache.bbclass | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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
}
More information about the Openembedded-commits
mailing list