[oe-commits] [bitbake] branch master updated: classes/base.bbclass: Fix missing getVarFlag parameter

git at git.openembedded.org git at git.openembedded.org
Tue May 24 14:55:53 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

The following commit(s) were added to refs/heads/master by this push:
       new  d830dcc   classes/base.bbclass: Fix missing getVarFlag parameter
d830dcc is described below

commit d830dccf948d188492cecfcf2ff053f31740dc21
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue May 24 15:54:38 2016 +0100

    classes/base.bbclass: Fix missing getVarFlag parameter
    
    [YOCTO #9603]
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 classes/base.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/classes/base.bbclass b/classes/base.bbclass
index 0972d69..71d9ec1 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)
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list