summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-02 23:55:37 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-18 07:48:00 +0000
commit4e5e501155a21fe64a470c626b3afe6d9748308e (patch)
tree2df4bddf5f3ca2b93e9393d767de1f4e97444ac0
parentc7610aa353e31977c099ce574acb188a3f4219e0 (diff)
downloadpoky-4e5e501155a21fe64a470c626b3afe6d9748308e.tar.gz
bitbake: data_smart: Drop default expand=False to getVarFlag [API change]
At some point in the future, getVarFlag should expand by default. To get there from the current position, we need a period of time where the expand parameter is mandatory. This patch starts that process. Clear errors will result from any code which doesn't provide this. Layers can be fixed with an expression like: sed -e 's:\(\.getVarFlag([^,()]*, [^,()]*\)):\1, False):g' -i `grep -ril getVar *` (Bitbake rev: aa3faebdf6af66ab34f74d328b2113de0b08c7ee) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/data_smart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index 79bec1bd34..d61ad5334e 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -663,7 +663,7 @@ class DataSmart(MutableMapping):
663 self.dict["__exportlist"]["_content"] = set() 663 self.dict["__exportlist"]["_content"] = set()
664 self.dict["__exportlist"]["_content"].add(var) 664 self.dict["__exportlist"]["_content"].add(var)
665 665
666 def getVarFlag(self, var, flag, expand=False, noweakdefault=False, parsing=False): 666 def getVarFlag(self, var, flag, expand, noweakdefault=False, parsing=False):
667 local_var = self._findVar(var) 667 local_var = self._findVar(var)
668 value = None 668 value = None
669 if flag == "_content" and var in self.overridedata and not parsing: 669 if flag == "_content" and var in self.overridedata and not parsing: