Skip to content

Commit

Permalink
classes/base.bbclass: Fix missing getVarFlag parameter
Browse files Browse the repository at this point in the history
[YOCTO #9603]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
  • Loading branch information
rpurdie committed May 24, 2016
1 parent 138329c commit d830dcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/base.bbclass
Expand Up @@ -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)))
}

Expand All @@ -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)
}

Expand Down

0 comments on commit d830dcc

Please sign in to comment.