diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-11 14:23:54 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-14 16:22:00 +0000 |
| commit | d8e9ee8fd53b7620e72b2dfebb2e8d464b737dbb (patch) | |
| tree | d815af2cb816524186a52c3f031dca5374e733d0 /bitbake/lib/bb/data_smart.py | |
| parent | de98b12ee17717bf4c18a02833e7a5260c7cb75d (diff) | |
| download | poky-d8e9ee8fd53b7620e72b2dfebb2e8d464b737dbb.tar.gz | |
bitbake: data/data_smart/build: Clean up datastore finalize/update_data references
We dropped the update_data calls a while ago. Clean up the code
to match the reality and drop the remaining no-op pieces. Update
the comments to reflect the slowest operations and let the cookie
monster's spirit live on!
(Bitbake rev: 584989ed2b5af4e8799571dece0cf94f995ef14e)
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 | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 62d0c01c41..5415f2fccf 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
| @@ -481,13 +481,6 @@ class DataSmart(MutableMapping): | |||
| 481 | def expand(self, s, varname = None): | 481 | def expand(self, s, varname = None): |
| 482 | return self.expandWithRefs(s, varname).value | 482 | return self.expandWithRefs(s, varname).value |
| 483 | 483 | ||
| 484 | def finalize(self, parent = False): | ||
| 485 | return | ||
| 486 | |||
| 487 | def internal_finalize(self, parent = False): | ||
| 488 | """Performs final steps upon the datastore, including application of overrides""" | ||
| 489 | self.overrides = None | ||
| 490 | |||
| 491 | def need_overrides(self): | 484 | def need_overrides(self): |
| 492 | if self.overrides is not None: | 485 | if self.overrides is not None: |
| 493 | return | 486 | return |
| @@ -638,7 +631,7 @@ class DataSmart(MutableMapping): | |||
| 638 | nextnew.update(vardata.references) | 631 | nextnew.update(vardata.references) |
| 639 | nextnew.update(vardata.contains.keys()) | 632 | nextnew.update(vardata.contains.keys()) |
| 640 | new = nextnew | 633 | new = nextnew |
| 641 | self.internal_finalize(True) | 634 | self.overrides = None |
| 642 | 635 | ||
| 643 | def _setvar_update_overrides(self, var, **loginfo): | 636 | def _setvar_update_overrides(self, var, **loginfo): |
| 644 | # aka pay the cookie monster | 637 | # aka pay the cookie monster |
