summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-02 15:46:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-03 16:24:13 +0100
commita4cc40c6227b1212d82450c3b2adc1e08061966f (patch)
tree2f46e6ff8864b1d647e607bafb70713fd57e4920 /bitbake/lib/bb/cooker.py
parent8779ebcc902641203ab2eb2be06964dd922b591a (diff)
downloadpoky-a4cc40c6227b1212d82450c3b2adc1e08061966f.tar.gz
bitbake: 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] (Bitbake rev: 949c01228a977c3b92bfc0802f6c71b40d8e05b3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index c7c2ca6483..2c54209f89 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1486,7 +1486,10 @@ class BBCooker:
1486 # Empty the environment. The environment will be populated as 1486 # Empty the environment. The environment will be populated as
1487 # necessary from the data store. 1487 # necessary from the data store.
1488 #bb.utils.empty_environment() 1488 #bb.utils.empty_environment()
1489 prserv.serv.auto_start(self.configuration.data) 1489 try:
1490 prserv.serv.auto_start(self.configuration.data)
1491 except prserv.serv.PRServiceConfigError:
1492 bb.event.fire(CookerExit(), self.configuration.event_data)
1490 return 1493 return
1491 1494
1492 def post_serve(self): 1495 def post_serve(self):