diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-09 15:03:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-10 23:48:16 +0000 |
commit | df90345d33730003300159e0c3e55c0efc61c7c2 (patch) | |
tree | 5911520d90abe52f1f4f841e01af543ca5f84192 /bitbake/lib/bb | |
parent | a30a06d9c1e6e585dba11d55266440de6f4ac35a (diff) | |
download | poky-df90345d33730003300159e0c3e55c0efc61c7c2.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: e655f9361b9c3b77906b8e06b5cc76bc5180640e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-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 4446addc77..67bf925441 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: |