aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-03 11:07:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-03 11:07:51 +0000
commitba871e0118d5ecd7379ad6495baa8416bbfbba44 (patch)
tree214a1d6928560dc15ba04c81ae2ed32c50c8b3ed /classes
parent9c3fbc7b2964f001f2dd49b6efd98ba9a42528ad (diff)
downloadbitbake-ba871e0118d5ecd7379ad6495baa8416bbfbba44.tar.gz
bitbake: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True)
Using "1" with getVar is bad coding style and "True" is preferred. This patch is a sed over bitbake directory of the form: sed \ -e 's:\(\.getVar([^,()]*, \)1 *):\1True):g' \ -e 's:\(\.getVarFlag([^,()]*, [^,()]*, \)1 *):\1True):g' \ -i `grep -ril getVar *` Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'classes')
-rw-r--r--classes/base.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 444b830b6..49f8e3976 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -44,7 +44,7 @@ python do_showdata() {
# emit the metadata which isnt valid shell
for e in bb.data.keys(d):
if d.getVarFlag(e, 'python'):
- sys.__stdout__.write("\npython %s () {\n%s}\n" % (e, d.getVar(e, 1)))
+ sys.__stdout__.write("\npython %s () {\n%s}\n" % (e, d.getVar(e, True)))
}
addtask listtasks