summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse/parse_py
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2016-11-25 15:28:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-30 15:48:09 +0000
commit1fce7ecbbb004a5ad82da3eef79cfd52b276708d (patch)
treedc19c8ecb8e0b04ba5eafd27a7679bb55585a868 /bitbake/lib/bb/parse/parse_py
parent1d0c124cdf0282b8d139063409e40982f0ec9888 (diff)
downloadpoky-1fce7ecbbb004a5ad82da3eef79cfd52b276708d.tar.gz
bitbake: bitbake: remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True option from getVar() calls with a regex search and replace. Search made with the following regex: getVar ?\(( ?[^,()]*), True\) (Bitbake rev: 3b45c479de8640f92dd1d9f147b02e1eecfaadc8) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py')
-rw-r--r--bitbake/lib/bb/parse/parse_py/BBHandler.py2
-rw-r--r--bitbake/lib/bb/parse/parse_py/ConfHandler.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py
index c54a07979d..f2a215105b 100644
--- a/bitbake/lib/bb/parse/parse_py/BBHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py
@@ -66,7 +66,7 @@ def inherit(files, fn, lineno, d):
66 file = os.path.join('classes', '%s.bbclass' % file) 66 file = os.path.join('classes', '%s.bbclass' % file)
67 67
68 if not os.path.isabs(file): 68 if not os.path.isabs(file):
69 bbpath = d.getVar("BBPATH", True) 69 bbpath = d.getVar("BBPATH")
70 abs_fn, attempts = bb.utils.which(bbpath, file, history=True) 70 abs_fn, attempts = bb.utils.which(bbpath, file, history=True)
71 for af in attempts: 71 for af in attempts:
72 if af != abs_fn: 72 if af != abs_fn:
diff --git a/bitbake/lib/bb/parse/parse_py/ConfHandler.py b/bitbake/lib/bb/parse/parse_py/ConfHandler.py
index 875250de40..5759cb20ed 100644
--- a/bitbake/lib/bb/parse/parse_py/ConfHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/ConfHandler.py
@@ -83,16 +83,16 @@ def include(parentfn, fn, lineno, data, error_out):
83 83
84 if not os.path.isabs(fn): 84 if not os.path.isabs(fn):
85 dname = os.path.dirname(parentfn) 85 dname = os.path.dirname(parentfn)
86 bbpath = "%s:%s" % (dname, data.getVar("BBPATH", True)) 86 bbpath = "%s:%s" % (dname, data.getVar("BBPATH"))
87 abs_fn, attempts = bb.utils.which(bbpath, fn, history=True) 87 abs_fn, attempts = bb.utils.which(bbpath, fn, history=True)
88 if abs_fn and bb.parse.check_dependency(data, abs_fn): 88 if abs_fn and bb.parse.check_dependency(data, abs_fn):
89 logger.warning("Duplicate inclusion for %s in %s" % (abs_fn, data.getVar('FILE', True))) 89 logger.warning("Duplicate inclusion for %s in %s" % (abs_fn, data.getVar('FILE')))
90 for af in attempts: 90 for af in attempts:
91 bb.parse.mark_dependency(data, af) 91 bb.parse.mark_dependency(data, af)
92 if abs_fn: 92 if abs_fn:
93 fn = abs_fn 93 fn = abs_fn
94 elif bb.parse.check_dependency(data, fn): 94 elif bb.parse.check_dependency(data, fn):
95 logger.warning("Duplicate inclusion for %s in %s" % (fn, data.getVar('FILE', True))) 95 logger.warning("Duplicate inclusion for %s in %s" % (fn, data.getVar('FILE')))
96 96
97 try: 97 try:
98 bb.parse.handle(fn, data, True) 98 bb.parse.handle(fn, data, True)