summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/event.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-08 11:19:40 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-08 11:38:15 +0100
commitb34d66225f4df23185870feb83626b1aab38bc11 (patch)
treefa1b3ed102107df95149e02cb3421d8a1ac28f83 /bitbake/lib/bb/event.py
parentcd3c4292e7ccc8934f229fcf010f8615398b87b5 (diff)
downloadpoky-b34d66225f4df23185870feb83626b1aab38bc11.tar.gz
bitbake none/xmlrpc servers: Only send pickled events to the xmlrpc server
Only the xmlrpc server needs pickled events. Use the function names to signify this requirement. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/event.py')
-rw-r--r--bitbake/lib/bb/event.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index cbe49fd699..4ff530fcb4 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -119,7 +119,10 @@ def fire_ui_handlers(event, d):
119 # We use pickle here since it better handles object instances 119 # We use pickle here since it better handles object instances
120 # which xmlrpc's marshaller does not. Events *must* be serializable 120 # which xmlrpc's marshaller does not. Events *must* be serializable
121 # by pickle. 121 # by pickle.
122 _ui_handlers[h].event.send((pickle.dumps(event))) 122 if hasattr(_ui_handlers[h].event, "sendpickle"):
123 _ui_handlers[h].event.sendpickle((pickle.dumps(event)))
124 else:
125 _ui_handlers[h].event.send(event)
123 except: 126 except:
124 errors.append(h) 127 errors.append(h)
125 for h in errors: 128 for h in errors: