mirror of
https://git.yoctoproject.org/poky
synced 2026-09-29 07:36:20 +02:00
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>
This commit is contained in:
@@ -580,11 +580,9 @@ class DataSmart(MutableMapping):
|
|||||||
else:
|
else:
|
||||||
loginfo['op'] = keyword
|
loginfo['op'] = keyword
|
||||||
self.varhistory.record(**loginfo)
|
self.varhistory.record(**loginfo)
|
||||||
# todo make sure keyword is not __doc__ or __module__
|
|
||||||
# pay the cookie monster
|
# pay the cookie monster
|
||||||
|
|
||||||
# more cookies for the cookie monster
|
# more cookies for the cookie monster
|
||||||
if ':' in var:
|
|
||||||
self._setvar_update_overrides(base, **loginfo)
|
self._setvar_update_overrides(base, **loginfo)
|
||||||
|
|
||||||
if base in self.overridevars:
|
if base in self.overridevars:
|
||||||
|
|||||||
Reference in New Issue
Block a user