summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data_smart.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/data_smart.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/data_smart.py')
-rw-r--r--bitbake/lib/bb/data_smart.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index b7badb6a37..482399a95d 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -146,7 +146,7 @@ class DataContext(dict):
146 self['d'] = metadata 146 self['d'] = metadata
147 147
148 def __missing__(self, key): 148 def __missing__(self, key):
149 value = self.metadata.getVar(key, True) 149 value = self.metadata.getVar(key)
150 if value is None or self.metadata.getVarFlag(key, 'func', False): 150 if value is None or self.metadata.getVarFlag(key, 'func', False):
151 raise KeyError(key) 151 raise KeyError(key)
152 else: 152 else:
@@ -318,7 +318,7 @@ class VariableHistory(object):
318 the files in which they were added. 318 the files in which they were added.
319 """ 319 """
320 history = self.variable(var) 320 history = self.variable(var)
321 finalitems = (d.getVar(var, True) or '').split() 321 finalitems = (d.getVar(var) or '').split()
322 filemap = {} 322 filemap = {}
323 isset = False 323 isset = False
324 for event in history: 324 for event in history:
@@ -426,11 +426,11 @@ class DataSmart(MutableMapping):
426 # Can end up here recursively so setup dummy values 426 # Can end up here recursively so setup dummy values
427 self.overrides = [] 427 self.overrides = []
428 self.overridesset = set() 428 self.overridesset = set()
429 self.overrides = (self.getVar("OVERRIDES", True) or "").split(":") or [] 429 self.overrides = (self.getVar("OVERRIDES") or "").split(":") or []
430 self.overridesset = set(self.overrides) 430 self.overridesset = set(self.overrides)
431 self.inoverride = False 431 self.inoverride = False
432 self.expand_cache = {} 432 self.expand_cache = {}
433 newoverrides = (self.getVar("OVERRIDES", True) or "").split(":") or [] 433 newoverrides = (self.getVar("OVERRIDES") or "").split(":") or []
434 if newoverrides == self.overrides: 434 if newoverrides == self.overrides:
435 break 435 break
436 self.overrides = newoverrides 436 self.overrides = newoverrides
@@ -541,7 +541,7 @@ class DataSmart(MutableMapping):
541 nextnew = set() 541 nextnew = set()
542 self.overridevars.update(new) 542 self.overridevars.update(new)
543 for i in new: 543 for i in new:
544 vardata = self.expandWithRefs(self.getVar(i, True), i) 544 vardata = self.expandWithRefs(self.getVar(i), i)
545 nextnew.update(vardata.references) 545 nextnew.update(vardata.references)
546 nextnew.update(vardata.contains.keys()) 546 nextnew.update(vardata.contains.keys())
547 new = nextnew 547 new = nextnew
@@ -937,7 +937,7 @@ class DataSmart(MutableMapping):
937 bb.data.expandKeys(d) 937 bb.data.expandKeys(d)
938 bb.data.update_data(d) 938 bb.data.update_data(d)
939 939
940 config_whitelist = set((d.getVar("BB_HASHCONFIG_WHITELIST", True) or "").split()) 940 config_whitelist = set((d.getVar("BB_HASHCONFIG_WHITELIST") or "").split())
941 keys = set(key for key in iter(d) if not key.startswith("__")) 941 keys = set(key for key in iter(d) if not key.startswith("__"))
942 for key in keys: 942 for key in keys:
943 if key in config_whitelist: 943 if key in config_whitelist: