aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
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 0972d694..71d9ec16 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -43,7 +43,7 @@ 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 d.getVarFlag(e, 'python'):
+ if d.getVarFlag(e, 'python', False):
bb.plain("\npython %s () {\n%s}" % (e, d.getVar(e, True)))
}
@@ -52,7 +52,7 @@ do_listtasks[nostamp] = "1"
python do_listtasks() {
import sys
for e in bb.data.keys(d):
- if d.getVarFlag(e, 'task'):
+ if d.getVarFlag(e, 'task', False):
bb.plain("%s" % e)
}