summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConstantin Musca <constantinx.musca@intel.com>2012-10-04 08:15:52 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-04 14:07:52 +0100
commit8202e49c5fa03822adf3a4d75bc87d33b23a7f65 (patch)
tree42a0c952d64afb5744708a8f2693d2a1ece22963
parentf540449d19ea7b822220853df5459dca3974e8a8 (diff)
downloadpoky-8202e49c5fa03822adf3a4d75bc87d33b23a7f65.tar.gz
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 <constantinx.musca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py7
1 files changed, 6 insertions, 1 deletions
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):
101 101
102 def runCommand(self, commandline): 102 def runCommand(self, commandline):
103 try: 103 try:
104 return self.server.runCommand(commandline) 104 result = self.server.runCommand(commandline)
105 result_str = str(result)
106 if (result_str.startswith("Busy (") or
107 result_str == "No such command"):
108 raise Exception(result_str)
109 return result
105 except Exception as e: 110 except Exception as e:
106 self.commands_async = [] 111 self.commands_async = []
107 self.clear_busy() 112 self.clear_busy()