Patch from Andrew Stubbs <ams@codesourcery.com> to fix listtasks and showdata
functions to output data correctly.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
# emit the metadata which isnt valid shell
for e in bb.data.keys(d):
if d.getVarFlag(e, 'python'):
- sys.__stdout__.write("\npython %s () {\n%s}\n" % (e, d.getVar(e, True)))
+ bb.plain("\npython %s () {\n%s}" % (e, d.getVar(e, True)))
}
addtask listtasks
import sys
for e in bb.data.keys(d):
if d.getVarFlag(e, 'task'):
- sys.__stdout__.write("%s\n" % e)
+ bb.plain("%s" % e)
}
addtask build