aboutsummaryrefslogtreecommitdiffstats
path: root/conf
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 /conf
parent9c3fbc7b2964f001f2dd49b6efd98ba9a42528ad (diff)
downloadbitbake-ba871e0118d5ecd7379ad6495baa8416bbfbba44.tar.gz
bitbake-ba871e0118d5ecd7379ad6495baa8416bbfbba44.tar.bz2
bitbake-ba871e0118d5ecd7379ad6495baa8416bbfbba44.zip
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 'conf')
-rw-r--r--conf/bitbake.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index 1ee4dc5a..c2ed9262 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -28,7 +28,7 @@ FETCHCOMMAND = ""
FETCHCOMMAND_cvs = "/usr/bin/env cvs -d${CVSROOT} co ${CVSCOOPTS} ${CVSMODULE}"
FETCHCOMMAND_svn = "/usr/bin/env svn co ${SVNCOOPTS} ${SVNROOT} ${SVNMODULE}"
FETCHCOMMAND_wget = "/usr/bin/env wget -t 5 --passive-ftp -P ${DL_DIR} ${URI}"
-FILESDIR = "${@bb.utils.which(d.getVar('FILESPATH', 1), '.')}"
+FILESDIR = "${@bb.utils.which(d.getVar('FILESPATH', True), '.')}"
FILESPATH = "${FILE_DIRNAME}/${PF}:${FILE_DIRNAME}/${P}:${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/files:${FILE_DIRNAME}"
FILE_DIRNAME = "${@os.path.dirname(d.getVar('FILE'))}"
GITDIR = "${DL_DIR}/git"