aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2005-05-17 18:04:46 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2005-05-17 18:04:46 +0000
commitc7f7cfd506f504f658088bc0c7ee9f487d8a3d3f (patch)
tree4c031f0154c212f14bf3754236369324a472b260 /classes
parentf07abf6a9cd413ef71db0023288f5868a9d83ec6 (diff)
downloadbitbake-c7f7cfd506f504f658088bc0c7ee9f487d8a3d3f.tar.gz
bitbake-c7f7cfd506f504f658088bc0c7ee9f487d8a3d3f.tar.bz2
bitbake-c7f7cfd506f504f658088bc0c7ee9f487d8a3d3f.zip
bitbake data module abstraction:
-bb.data is now a delegate to hookable Data implementation. -bb.data.init() is the 'factory' method to create a instance of a concrete implementation. -Kill assumptions that bb.data.init() returns a {} (python dict) -Add the old Dictionary Based Implementation as data_dict.py
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 f319676d..1d75964f 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -54,7 +54,7 @@ python do_showdata() {
# emit variables and shell functions
bb.data.emit_env(sys.__stdout__, d, True)
# emit the metadata which isnt valid shell
- for e in d.keys():
+ 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)))
}
@@ -63,7 +63,7 @@ addtask listtasks
do_listtasks[nostamp] = "1"
python do_listtasks() {
import sys
- for e in d.keys():
+ for e in bb.data.keys(d):
if bb.data.getVarFlag(e, 'task', d):
sys.__stdout__.write("%s\n" % e)
}