summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse/__init__.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-18 15:14:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-23 11:57:53 +0100
commit69b69193411849de71cf7c81735c3239e28a2940 (patch)
tree054081264a49c9aa3002bc358ab0c4d7b7239015 /bitbake/lib/bb/parse/__init__.py
parent86d30d756a60d181a95cf07041920a367a0cd0ba (diff)
downloadpoky-69b69193411849de71cf7c81735c3239e28a2940.tar.gz
bitbake: 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 *` (Bitbake rev: 659ef95c9b8aced3c4ded81c48bcc0fbde4d429f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/parse/__init__.py')
-rw-r--r--bitbake/lib/bb/parse/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py
index 25effc2200..4a78e183ab 100644
--- a/bitbake/lib/bb/parse/__init__.py
+++ b/bitbake/lib/bb/parse/__init__.py
@@ -81,7 +81,7 @@ def update_cache(f):
81def mark_dependency(d, f): 81def mark_dependency(d, f):
82 if f.startswith('./'): 82 if f.startswith('./'):
83 f = "%s/%s" % (os.getcwd(), f[2:]) 83 f = "%s/%s" % (os.getcwd(), f[2:])
84 deps = (d.getVar('__depends') or []) 84 deps = (d.getVar('__depends', False) or [])
85 s = (f, cached_mtime_noerror(f)) 85 s = (f, cached_mtime_noerror(f))
86 if s not in deps: 86 if s not in deps:
87 deps.append(s) 87 deps.append(s)
@@ -89,7 +89,7 @@ def mark_dependency(d, f):
89 89
90def check_dependency(d, f): 90def check_dependency(d, f):
91 s = (f, cached_mtime_noerror(f)) 91 s = (f, cached_mtime_noerror(f))
92 deps = (d.getVar('__depends') or []) 92 deps = (d.getVar('__depends', False) or [])
93 return s in deps 93 return s in deps
94 94
95def supports(fn, data): 95def supports(fn, data):