mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
bitbake: cookerdata: Avoid tracebacks from early reset() calls
cooker.reset() can be called before we've actually setup the datastore. Gracefully handle this case instead of the current traceback+exit. (Bitbake rev: 8fd30ca6d271c125a8ea03ef0c5d7ab176900701) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -327,6 +327,9 @@ class CookerDataBuilder(object):
|
|||||||
self.mcdata[''] = self.data
|
self.mcdata[''] = self.data
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
|
# We may not have run parseBaseConfiguration() yet
|
||||||
|
if not hasattr(self, 'origdata'):
|
||||||
|
return
|
||||||
self.data = bb.data.createCopy(self.origdata)
|
self.data = bb.data.createCopy(self.origdata)
|
||||||
self.mcdata[''] = self.data
|
self.mcdata[''] = self.data
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user