bitbake: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True)
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Mar 2012 11:07:51 +0000 (11:07 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Mar 2012 11:07:51 +0000 (11:07 +0000)
commitba871e0118d5ecd7379ad6495baa8416bbfbba44
tree214a1d6928560dc15ba04c81ae2ed32c50c8b3ed
parent9c3fbc7b2964f001f2dd49b6efd98ba9a42528ad
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>
classes/base.bbclass
conf/bitbake.conf
lib/bb/build.py
lib/bb/cooker.py
lib/bb/data_smart.py
lib/bb/fetch/__init__.py
lib/bb/monitordisk.py
lib/bb/parse/parse_py/ConfHandler.py
lib/bb/providers.py
lib/bb/runqueue.py