aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-03 11:06:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-03 11:06:04 +0000
commit9c3fbc7b2964f001f2dd49b6efd98ba9a42528ad (patch)
tree37fa8e3ced001624bf651c348135c14f496eb7e5 /classes
parent4a480a052f450c4ee061ab0e60a495a45f140cf9 (diff)
downloadbitbake-9c3fbc7b2964f001f2dd49b6efd98ba9a42528ad.tar.gz
bitbake-9c3fbc7b2964f001f2dd49b6efd98ba9a42528ad.tar.bz2
bitbake-9c3fbc7b2964f001f2dd49b6efd98ba9a42528ad.zip
conf/classes: Catch up with bb.data -> direct object access conversion
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'classes')
-rw-r--r--classes/base.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index c6693ce3..444b830b 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -43,8 +43,8 @@ python do_showdata() {
bb.data.emit_env(sys.__stdout__, d, True)
# emit the metadata which isnt valid shell
for e in bb.data.keys(d):
- if bb.data.getVarFlag(e, 'python', d):
- sys.__stdout__.write("\npython %s () {\n%s}\n" % (e, bb.data.getVar(e, d, 1)))
+ if d.getVarFlag(e, 'python'):
+ sys.__stdout__.write("\npython %s () {\n%s}\n" % (e, d.getVar(e, 1)))
}
addtask listtasks
@@ -52,7 +52,7 @@ do_listtasks[nostamp] = "1"
python do_listtasks() {
import sys
for e in bb.data.keys(d):
- if bb.data.getVarFlag(e, 'task', d):
+ if d.getVarFlag(e, 'task'):
sys.__stdout__.write("%s\n" % e)
}