aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-18 12:39:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-18 12:39:31 +0000
commit0c99df2af1d35dbc9f51cd68b4908029cef288fa (patch)
treec823530aab02579f8583f7584819ddded755fa01 /classes
parentf00524a3729000cbcb3317fee933ac448fae5e2d (diff)
downloadbitbake-0c99df2af1d35dbc9f51cd68b4908029cef288fa.tar.gz
bitbake-0c99df2af1d35dbc9f51cd68b4908029cef288fa.tar.bz2
bitbake-0c99df2af1d35dbc9f51cd68b4908029cef288fa.zip
base.bbclass: Fix bitbake example class usage
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>
Diffstat (limited to 'classes')
-rw-r--r--classes/base.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 49f8e397..0972d694 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -44,7 +44,7 @@ python do_showdata() {
# 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
@@ -53,7 +53,7 @@ python do_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