summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/command.py3
-rw-r--r--lib/bb/cooker.py5
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py
index d4dcc653a..f8c6a03bb 100644
--- a/lib/bb/command.py
+++ b/lib/bb/command.py
@@ -143,7 +143,8 @@ class Command:
self.cooker.finishcommand()
def reset(self):
- self.remotedatastores = bb.remotedata.RemoteDatastores(self.cooker)
+ if self.remotedatastores:
+ self.remotedatastores = bb.remotedata.RemoteDatastores(self.cooker)
class CommandsSync:
"""
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index e45755206..58c223c1c 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1703,8 +1703,9 @@ class BBCooker:
self.finishcommand()
self.extraconfigdata = {}
self.command.reset()
- self.databuilder.reset()
- self.data = self.databuilder.data
+ if hasattr(self, "data"):
+ self.databuilder.reset()
+ self.data = self.databuilder.data
self.parsecache_valid = False
self.baseconfig_valid = False