Patchwork base.bbclass: Use bb.plain to print the build header

login
register
mail settings
Submitter Richard Purdie
Date Nov. 24, 2011, 2:57 p.m.
Message ID <1322146645.10818.0.camel@ted>
Download mbox | patch
Permalink /patch/15411/
State Accepted
Commit 73a3d0d337e26c2be89c215efb8a2c3dd5d5994d
Headers show

Comments

Richard Purdie - Nov. 24, 2011, 2:57 p.m.
If we just use print, the bitbake logging functions don't see the message
and it can get lost if bitbake is for example logging messages to disk.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
Darren Hart - Nov. 24, 2011, 4:03 p.m.
On 11/24/2011 06:57 AM, Richard Purdie wrote:
> If we just use print, the bitbake logging functions don't see the message
> and it can get lost if bitbake is for example logging messages to disk.
> 
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Acked-by: Darren Hart <dvhart@linux.intel.com>

> ---
> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
> index ba1f230..72196d6 100644
> --- a/meta/classes/base.bbclass
> +++ b/meta/classes/base.bbclass
> @@ -232,7 +232,7 @@ python base_eventhandler() {
>  
>  		statuslines += layers_branch_rev
>  		statusmsg = "\nOE Build Configuration:\n%s\n" % '\n'.join(statuslines)
> -		print statusmsg
> +		bb.plain(statusmsg)
>  
>  		needed_vars = [ "TARGET_ARCH", "TARGET_OS" ]
>  		pesteruser = []
> 
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index ba1f230..72196d6 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -232,7 +232,7 @@  python base_eventhandler() {
 
 		statuslines += layers_branch_rev
 		statusmsg = "\nOE Build Configuration:\n%s\n" % '\n'.join(statuslines)
-		print statusmsg
+		bb.plain(statusmsg)
 
 		needed_vars = [ "TARGET_ARCH", "TARGET_OS" ]
 		pesteruser = []