diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-08 15:08:18 -0500 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:47 +0000 |
commit | 246bd1861367066db325bb12a90551319675ad7b (patch) | |
tree | 84f82034b825fd790e05c32416b0d0e7a57c074c /bitbake/lib/bb/cooker.py | |
parent | 825e5045f40185666605392138289448e33ec72d (diff) | |
download | poky-246bd1861367066db325bb12a90551319675ad7b.tar.gz |
cooker: add shutdown/stop methods
(Bitbake rev: fc64eff03fe1f41e59128cb3df0ef2161e24a8cb)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 6 |
1 files changed, 6 insertions, 0 deletions
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 | |||
956 | class CookerExit(bb.event.Event): | 962 | class CookerExit(bb.event.Event): |
957 | """ | 963 | """ |
958 | Notify clients of the Cooker shutdown | 964 | Notify clients of the Cooker shutdown |