summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/data_smart.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index f100446dcc..805a9a71fa 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -748,13 +748,14 @@ class DataSmart(MutableMapping):
748 if match: 748 if match:
749 removes.extend(self.expand(r).split()) 749 removes.extend(self.expand(r).split())
750 750
751 filtered = filter(lambda v: v not in removes, 751 if removes:
752 value.split()) 752 filtered = filter(lambda v: v not in removes,
753 value = " ".join(filtered) 753 value.split())
754 if expand and var in self.expand_cache: 754 value = " ".join(filtered)
755 # We need to ensure the expand cache has the correct value 755 if expand and var in self.expand_cache:
756 # flag == "_content" here 756 # We need to ensure the expand cache has the correct value
757 self.expand_cache[var].value = value 757 # flag == "_content" here
758 self.expand_cache[var].value = value
758 return value 759 return value
759 760
760 def delVarFlag(self, var, flag, **loginfo): 761 def delVarFlag(self, var, flag, **loginfo):