[oe-commits] [bitbake] 05/10: data_smart: Default to expansion for getVar/getVarFlags
git at git.openembedded.org
git at git.openembedded.org
Wed Nov 16 11:42:39 UTC 2016
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit ddb38f9d0d768bc6304c4889c8320a013dff2e94
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Nov 16 11:20:42 2016 +0000
data_smart: Default to expansion for getVar/getVarFlags
We've been building to this for a while, default to return expanded
values for getVar/getVarFlags.
We can then go through and remove the "True" option to many of the
calls to this function, all function calls should have a default by now
though since the parameter has been required for a while.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/data_smart.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index f100446..cd3853e 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -565,7 +565,7 @@ class DataSmart(MutableMapping):
if len(shortvar) == 0:
override = None
- def getVar(self, var, expand, noweakdefault=False, parsing=False):
+ def getVar(self, var, expand=True, noweakdefault=False, parsing=False):
return self.getVarFlag(var, "_content", expand, noweakdefault, parsing)
def renameVar(self, key, newkey, **loginfo):
@@ -662,7 +662,7 @@ class DataSmart(MutableMapping):
self.dict["__exportlist"]["_content"] = set()
self.dict["__exportlist"]["_content"].add(var)
- def getVarFlag(self, var, flag, expand, noweakdefault=False, parsing=False):
+ def getVarFlag(self, var, flag, expand=True, noweakdefault=False, parsing=False):
local_var = self._findVar(var)
value = None
if flag == "_content" and var in self.overridedata and not parsing:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list