utility-tasks.bbclass: show do_listtasks's output to console
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]
Signed-off-by Kevin Tian <[email protected]>
--- meta/classes/utility-tasks.bbclass | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
meta/classes/utility-tasks.bbclass +3 -1
@@ -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