diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-03 08:27:11 -1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-05 12:36:55 +0000 |
commit | f18d2289d02a4c1ccefb2ddcedab073c82df411c (patch) | |
tree | 73b823799bffdaa8558c9c15318c56f989943a38 /bitbake/lib | |
parent | de97f0eccc21843d300719941478c8513a258cdd (diff) | |
download | poky-f18d2289d02a4c1ccefb2ddcedab073c82df411c.tar.gz |
bitbake: cooker: Ensure reparsing is handled correctly
>From tinfoil, if you edit bblayers.conf and break it, then call
parseConfiguration (e.g. by adding a bad layer with bitbake-layers),
the system doens't show any parse error yet it should.
Add in a call to the updateCache function so that things really
are reparsed when requested.
Partially fixes [YOCTO #14054]
(Bitbake rev: a6ad6eaf4cddbe45077d1e6cb667f71602b8a49d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e655f9361b9c3b77906b8e06b5cc76bc5180640e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 000faf82f5..8d9ca68062 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -411,6 +411,8 @@ class BBCooker: | |||
411 | self.data.disableTracking() | 411 | self.data.disableTracking() |
412 | 412 | ||
413 | def parseConfiguration(self): | 413 | def parseConfiguration(self): |
414 | self.updateCacheSync() | ||
415 | |||
414 | # Change nice level if we're asked to | 416 | # Change nice level if we're asked to |
415 | nice = self.data.getVar("BB_NICE_LEVEL") | 417 | nice = self.data.getVar("BB_NICE_LEVEL") |
416 | if nice: | 418 | if nice: |