All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hob/hobeventhandler: Throw an exception if runCommand fails
@ 2012-10-04  5:15 Constantin Musca
  2012-10-04 13:00 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Constantin Musca @ 2012-10-04  5:15 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Constantin Musca

- throw a Hob exception if runCommand returns 'Busy' or
'No such command'

[YOCTO #1245]

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
---
 bitbake/lib/bb/ui/crumbs/hobeventhandler.py |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index e8d7dc2..2ce5b66 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()
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-04 13:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-04  5:15 [PATCH] hob/hobeventhandler: Throw an exception if runCommand fails Constantin Musca
2012-10-04 13:00 ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.