summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/command.py4
-rw-r--r--bitbake/lib/bb/cooker.py6
2 files changed, 8 insertions, 2 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 654ede0e85..30c7240cf2 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -124,13 +124,13 @@ class CommandsSync:
124 """ 124 """
125 Trigger cooker 'shutdown' mode 125 Trigger cooker 'shutdown' mode
126 """ 126 """
127 command.cooker.state = bb.cooker.state.shutdown 127 command.cooker.shutdown()
128 128
129 def stateStop(self, command, params): 129 def stateStop(self, command, params):
130 """ 130 """
131 Stop the cooker 131 Stop the cooker
132 """ 132 """
133 command.cooker.state = bb.cooker.state.stop 133 command.cooker.stop()
134 134
135 def getCmdLineAction(self, command, params): 135 def getCmdLineAction(self, command, params):
136 """ 136 """
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 9f4afbb59e..3b4eae8c4c 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -953,6 +953,12 @@ def server_main(cooker, func, *args):
953 953
954 return ret 954 return ret
955 955
956 def shutdown(self):
957 self.state = state.shutdown
958
959 def stop(self):
960 self.state = state.stop
961
956class CookerExit(bb.event.Event): 962class CookerExit(bb.event.Event):
957 """ 963 """
958 Notify clients of the Cooker shutdown 964 Notify clients of the Cooker shutdown