summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/command.py3
-rw-r--r--bitbake/lib/bb/cooker.py5
2 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index d4dcc653a0..f8c6a03bb9 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -143,7 +143,8 @@ class Command:
143 self.cooker.finishcommand() 143 self.cooker.finishcommand()
144 144
145 def reset(self): 145 def reset(self):
146 self.remotedatastores = bb.remotedata.RemoteDatastores(self.cooker) 146 if self.remotedatastores:
147 self.remotedatastores = bb.remotedata.RemoteDatastores(self.cooker)
147 148
148class CommandsSync: 149class CommandsSync:
149 """ 150 """
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index e45755206e..58c223c1ca 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1703,8 +1703,9 @@ class BBCooker:
1703 self.finishcommand() 1703 self.finishcommand()
1704 self.extraconfigdata = {} 1704 self.extraconfigdata = {}
1705 self.command.reset() 1705 self.command.reset()
1706 self.databuilder.reset() 1706 if hasattr(self, "data"):
1707 self.data = self.databuilder.data 1707 self.databuilder.reset()
1708 self.data = self.databuilder.data
1708 self.parsecache_valid = False 1709 self.parsecache_valid = False
1709 self.baseconfig_valid = False 1710 self.baseconfig_valid = False
1710 1711