summaryrefslogtreecommitdiffstats
path: root/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-09 15:03:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-09 15:59:44 +0000
commite655f9361b9c3b77906b8e06b5cc76bc5180640e (patch)
tree7bb27bf241c2c64834a271add369890132e2dac2 /lib/bb
parentb07b226d5d1b3acd3f76d8365bc8002293365999 (diff)
downloadbitbake-e655f9361b9c3b77906b8e06b5cc76bc5180640e.tar.gz
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] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb')
-rw-r--r--lib/bb/cooker.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 4446addc7..67bf92544 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -411,6 +411,8 @@ class BBCooker:
self.data.disableTracking()
def parseConfiguration(self):
+ self.updateCacheSync()
+
# Change nice level if we're asked to
nice = self.data.getVar("BB_NICE_LEVEL")
if nice: