[poky] [PATCH 1/1] utility-tasks.bbclass: show do_listtasks's output to console

Kevin Tian kevin.tian at intel.com
Thu Nov 25 18:14:23 PST 2010


Use bb.msg.note to have output to console directly, or else it will be recorded
in the WORKDIR logfile instead. Previously it worked because we didn't log
python tasks

Fix [BUGID #548], [BUGID #361]

Signed-off-by: Kevin Tian <kevin.tian at intel.com>
---
 meta/classes/utility-tasks.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass
index 205a206..b922a7f 100644
--- a/meta/classes/utility-tasks.bbclass
+++ b/meta/classes/utility-tasks.bbclass
@@ -5,9 +5,11 @@ python do_listtasks() {
 	# emit variables and shell functions
 	#bb.data.emit_env(sys.__stdout__, d)
 	# emit the metadata which isnt valid shell
+        msg = ""
 	for e in d.keys():
 		if bb.data.getVarFlag(e, 'task', d):
-			sys.__stdout__.write("%s\n" % e)
+			msg += "%s\n" % e
+        bb.msg.note(1, bb.msg.domain.Cache, "available task list:\n%s" % msg)
 }
 
 CLEANFUNCS ?= ""
-- 
1.6.0.4




More information about the poky mailing list