summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-16 22:35:36 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-18 10:59:27 +0100
commit58e3f45d4b7d69d663ce7c94933d4da7b5f071e3 (patch)
tree418200e40ecd7741248ad712db7a166cec9c4ee5 /bitbake
parent24139e27c65b19beeeac7a7521d862bc0ef24b9e (diff)
downloadpoky-58e3f45d4b7d69d663ce7c94933d4da7b5f071e3.tar.gz
bitbake: data_smart: Micro optimise _remove handling
This brings _remove handling into line with _append/_prepend with regard to the parsing flag to getVarFlag. This is an internal flag and the only times this is used is through getVar during renameVar operations and when processing ?= operations to see if a variable is set. In either case we don't need to process remove operations. Therefore take the minor speedup and skip processing for parsing=True. [YOCTO #10945] (Bitbake rev: 6d19eb3226b59922c0f888e33b28443635151501) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-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 0a8488ca1b..7b2c0a8943 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -805,7 +805,7 @@ class DataSmart(MutableMapping):
805 cachename = var + "[" + flag + "]" 805 cachename = var + "[" + flag + "]"
806 value = self.expand(value, cachename) 806 value = self.expand(value, cachename)
807 807
808 if value and flag == "_content" and local_var is not None and "_remove" in local_var: 808 if value and flag == "_content" and local_var is not None and "_remove" in local_var and not parsing:
809 removes = [] 809 removes = []
810 self.need_overrides() 810 self.need_overrides()
811 for (r, o) in local_var["_remove"]: 811 for (r, o) in local_var["_remove"]: