summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/command.py2
-rw-r--r--bitbake/lib/bb/cooker.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 3ca27a69e0..a2795ce0b7 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -86,6 +86,8 @@ class Command:
86 86
87 def runAsyncCommand(self): 87 def runAsyncCommand(self):
88 try: 88 try:
89 if self.cooker.state == bb.cooker.state.error:
90 return False
89 if self.currentAsyncCommand is not None: 91 if self.currentAsyncCommand is not None:
90 (command, options) = self.currentAsyncCommand 92 (command, options) = self.currentAsyncCommand
91 commandmethod = getattr(CommandsAsync, command) 93 commandmethod = getattr(CommandsAsync, command)
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index ad36b34aa4..b504f45da6 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -61,7 +61,7 @@ class CollectionError(bb.BBHandledException):
61 """ 61 """
62 62
63class state: 63class state:
64 initial, parsing, running, shutdown, forceshutdown, stopped = range(6) 64 initial, parsing, running, shutdown, forceshutdown, stopped, error = range(7)
65 65
66 66
67class SkippedPackage: 67class SkippedPackage:
@@ -1321,6 +1321,7 @@ class BBCooker:
1321 self.prhost = prserv.serv.auto_start(self.data) 1321 self.prhost = prserv.serv.auto_start(self.data)
1322 except prserv.serv.PRServiceConfigError: 1322 except prserv.serv.PRServiceConfigError:
1323 bb.event.fire(CookerExit(), self.event_data) 1323 bb.event.fire(CookerExit(), self.event_data)
1324 self.state = state.error
1324 return 1325 return
1325 1326
1326 def post_serve(self): 1327 def post_serve(self):