From 9c52c73fd2498e65be5f0da24dc2ae3803eb42eb Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 2 May 2013 15:46:11 +0100 Subject: prserv/cooker: Handle PRService errors cleanly Current if the PR Service fails to start, bitbake carries on regardless or hangs with no error message. This adds an exception and then handles it correctly so the UIs correctly handle the error and exit cleanly. [YOCTO #4010] Signed-off-by: Richard Purdie --- lib/bb/cooker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/bb/cooker.py') diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 7ca1ffdd9..c39d522c4 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1353,7 +1353,10 @@ class BBCooker: # Empty the environment. The environment will be populated as # necessary from the data store. #bb.utils.empty_environment() - prserv.serv.auto_start(self.configuration.data) + try: + prserv.serv.auto_start(self.configuration.data) + except prserv.serv.PRServiceConfigError: + bb.event.fire(CookerExit(), self.configuration.event_data) return def post_serve(self): -- cgit 1.2.3-korg