diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2025-02-24 22:48:52 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-06 16:32:47 +0000 |
commit | c077a12e49029a6873d36ed25fbedb36a35505be (patch) | |
tree | 29cc0eb1e63551c7b05ebbee3d348ca3200cffd6 /bitbake/lib/bb/data_smart.py | |
parent | 27db4f10142cd0612987b3f2139d5d22c17c422d (diff) | |
download | poky-c077a12e49029a6873d36ed25fbedb36a35505be.tar.gz |
bitbake: data_smart.py: simple clean up
When var matches __setvar_regexp__, which has the value as below,
__setvar_regexp__ = re.compile(r'(?P<base>.*?)(?P<keyword>:append|:prepend|:remove)(:(?P<add>[^A-Z]*))?$')
the keyword will not be __doc__ or __module__ and var will always
contain ":".
(Bitbake rev: 0af396917fe176df7b1ed0bd7c7267507ed12e03)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index fa7ddef74a..77a3fd602f 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
@@ -580,12 +580,10 @@ class DataSmart(MutableMapping): | |||
580 | else: | 580 | else: |
581 | loginfo['op'] = keyword | 581 | loginfo['op'] = keyword |
582 | self.varhistory.record(**loginfo) | 582 | self.varhistory.record(**loginfo) |
583 | # todo make sure keyword is not __doc__ or __module__ | ||
584 | # pay the cookie monster | 583 | # pay the cookie monster |
585 | 584 | ||
586 | # more cookies for the cookie monster | 585 | # more cookies for the cookie monster |
587 | if ':' in var: | 586 | self._setvar_update_overrides(base, **loginfo) |
588 | self._setvar_update_overrides(base, **loginfo) | ||
589 | 587 | ||
590 | if base in self.overridevars: | 588 | if base in self.overridevars: |
591 | self._setvar_update_overridevars(var, value) | 589 | self._setvar_update_overridevars(var, value) |