diff options
author | Constantin Musca <constantinx.musca@intel.com> | 2012-10-04 08:15:52 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-10 15:21:40 +0100 |
commit | eb1782f715aba9d4051617ed6f7ee6bc78f3861b (patch) | |
tree | 2321af2c7ec04f7d042391bbb61e8bc6b60a4739 /bitbake/lib | |
parent | 503023dd69a032f17ff31bef186ef15c6e71168e (diff) | |
download | poky-eb1782f715aba9d4051617ed6f7ee6bc78f3861b.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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 7 |
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() |