diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-18 15:14:19 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-19 22:43:48 +0100 |
commit | 659ef95c9b8aced3c4ded81c48bcc0fbde4d429f (patch) | |
tree | c63666710636bf12d25ef5a491f5d1abbcca4f96 /lib/bb/parse/__init__.py | |
parent | 5ecd6a671c088f270d5f49093f8da83278fc0aa9 (diff) | |
download | bitbake-contrib-659ef95c9b8aced3c4ded81c48bcc0fbde4d429f.tar.gz |
bitbake: Add explict getVar param for (non) expansion
Rather than just use d.getVar(X), use the more explict d.getVar(X, False)
since at some point in the future, having the default of expansion would
be nice. This is the first step towards that.
This patch was mostly made using the command:
sed -e 's:\(getVar([^,()]*\)\s*):\1, False):g' -i `grep -ril getVar *`
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/parse/__init__.py')
-rw-r--r-- | lib/bb/parse/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/parse/__init__.py b/lib/bb/parse/__init__.py index 25effc220..4a78e183a 100644 --- a/lib/bb/parse/__init__.py +++ b/lib/bb/parse/__init__.py @@ -81,7 +81,7 @@ def update_cache(f): def mark_dependency(d, f): if f.startswith('./'): f = "%s/%s" % (os.getcwd(), f[2:]) - deps = (d.getVar('__depends') or []) + deps = (d.getVar('__depends', False) or []) s = (f, cached_mtime_noerror(f)) if s not in deps: deps.append(s) @@ -89,7 +89,7 @@ def mark_dependency(d, f): def check_dependency(d, f): s = (f, cached_mtime_noerror(f)) - deps = (d.getVar('__depends') or []) + deps = (d.getVar('__depends', False) or []) return s in deps def supports(fn, data): |