diff options
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 301f9e3729..d8ba24ffd7 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
@@ -268,7 +268,12 @@ class DataSmart(MutableMapping): | |||
268 | self.dict[var]["content"] = value | 268 | self.dict[var]["content"] = value |
269 | 269 | ||
270 | def getVar(self, var, expand=False, noweakdefault=False): | 270 | def getVar(self, var, expand=False, noweakdefault=False): |
271 | return self.getVarFlag(var, "content", expand, noweakdefault) | 271 | value = self.getVarFlag(var, "content", False, noweakdefault) |
272 | |||
273 | # Call expand() separately to make use of the expand cache | ||
274 | if expand and value: | ||
275 | return self.expand(value, var) | ||
276 | return value | ||
272 | 277 | ||
273 | def renameVar(self, key, newkey): | 278 | def renameVar(self, key, newkey): |
274 | """ | 279 | """ |