summaryrefslogtreecommitdiffstats
path: root/lib/bb/cooker.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-08 15:08:18 -0500
committerChris Larson <chris_larson@mentor.com>2010-12-08 19:12:49 -0500
commitfc64eff03fe1f41e59128cb3df0ef2161e24a8cb (patch)
treeeeb0330074bc599abee17e93d57d2119a9ed9205 /lib/bb/cooker.py
parentc7c8945ef7ca9465312e630b7fa5f0a87ac8b6c7 (diff)
downloadbitbake-fc64eff03fe1f41e59128cb3df0ef2161e24a8cb.tar.gz
cooker: add shutdown/stop methods
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r--lib/bb/cooker.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 4e6ff73b6..1c01ebe6c 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -921,6 +921,12 @@ class BBCooker:
bb.event.fire(CookerExit(), self.configuration.event_data)
+ def shutdown(self):
+ self.state = state.shutdown
+
+ def stop(self):
+ self.state = state.stop
+
class CookerExit(bb.event.Event):
"""
Notify clients of the Cooker shutdown