From eb1782f715aba9d4051617ed6f7ee6bc78f3861b Mon Sep 17 00:00:00 2001 From: Constantin Musca Date: Thu, 4 Oct 2012 08:15:52 +0300 Subject: bitbake: hob/hobeventhandler: Throw an exception if runCommand fails - throw a Hob exception if runCommand returns 'Busy' or 'No such command' [YOCTO #1245] (Bitbake rev: 5a8e3baa66f845599a616f080a7efce81ecda631) Signed-off-by: Constantin Musca Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index e8d7dc2ce2..2ce5b66e72 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py @@ -101,7 +101,12 @@ class HobHandler(gobject.GObject): def runCommand(self, commandline): try: - return self.server.runCommand(commandline) + result = self.server.runCommand(commandline) + result_str = str(result) + if (result_str.startswith("Busy (") or + result_str == "No such command"): + raise Exception(result_str) + return result except Exception as e: self.commands_async = [] self.clear_busy() -- cgit v1.2.3-54-g00ecf