[oe-commits] [bitbake] 01/06: data_smart: Micro optimise _remove handling

git at git.openembedded.org git at git.openembedded.org
Wed Oct 17 22:33:17 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 6d19eb3226b59922c0f888e33b28443635151501
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue Oct 16 22:35:36 2018 +0100

    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]
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/data_smart.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index 0a8488c..7b2c0a8 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -805,7 +805,7 @@ class DataSmart(MutableMapping):
                 cachename = var + "[" + flag + "]"
             value = self.expand(value, cachename)
 
-        if value and flag == "_content" and local_var is not None and "_remove" in local_var:
+        if value and flag == "_content" and local_var is not None and "_remove" in local_var and not parsing:
             removes = []
             self.need_overrides()
             for (r, o) in local_var["_remove"]:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list