diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2025-02-24 22:48:52 -0800 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-03-08 06:22:56 -0800 |
commit | 133ac79e70478bc086363042278f99b26700af23 (patch) | |
tree | 851fe6d4d33fa75b16e782e7c57a3a5ec928959b | |
parent | d8d82a17eeb75a9703dd4c0dc8264a8895797deb (diff) | |
download | poky-133ac79e70478bc086363042278f99b26700af23.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: 9cac695951d0fd587063b250bfc8ef0f87acad18)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 03010356ab..5975884ec4 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
@@ -580,12 +580,9 @@ 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 | ||
585 | 583 | ||
586 | # more cookies for the cookie monster | 584 | # more cookies for the cookie monster |
587 | if ':' in var: | 585 | self._setvar_update_overrides(base, **loginfo) |
588 | self._setvar_update_overrides(base, **loginfo) | ||
589 | 586 | ||
590 | if base in self.overridevars: | 587 | if base in self.overridevars: |
591 | self._setvar_update_overridevars(var, value) | 588 | self._setvar_update_overridevars(var, value) |