Skip to contentSkip to conversation

utility-tasks.bbclass: show do_listtasks's output to console

PATCH New Kevin Tian 1 participant 1 message Nov 26, 2010

lore
Share & tools
lore

Kevin Tian

author
#0 lore raw

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

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]

---
 meta/classes/utility-tasks.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
meta/classes/utility-tasks.bbclass +3 -1
index 205a206..b922a7f 100644
@@ -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 ?= ""
Signature · 1 line
1.6.0.4