diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 970e404b17..bc4ad54f57 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
@@ -647,7 +647,7 @@ class DataSmart(MutableMapping): | |||
647 | self.varhistory.record(**loginfo) | 647 | self.varhistory.record(**loginfo) |
648 | self.dict[var][i] = flags[i] | 648 | self.dict[var][i] = flags[i] |
649 | 649 | ||
650 | def getVarFlags(self, var, internalflags=False): | 650 | def getVarFlags(self, var, expand = False, internalflags=False): |
651 | local_var = self._findVar(var) | 651 | local_var = self._findVar(var) |
652 | flags = {} | 652 | flags = {} |
653 | 653 | ||
@@ -656,7 +656,8 @@ class DataSmart(MutableMapping): | |||
656 | if i.startswith("_") and not internalflags: | 656 | if i.startswith("_") and not internalflags: |
657 | continue | 657 | continue |
658 | flags[i] = local_var[i] | 658 | flags[i] = local_var[i] |
659 | 659 | if expand and i in expand: | |
660 | flags[i] = self.expand(flags[i], None) | ||
660 | if len(flags) == 0: | 661 | if len(flags) == 0: |
661 | return None | 662 | return None |
662 | return flags | 663 | return flags |