diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-28 17:06:43 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-30 10:10:37 +0100 |
commit | fc49a6f00fc1ae3430ab3eb9615472efff0a7fce (patch) | |
tree | 974ebece6994013163d06bef990b9565e142b1ed /bitbake/lib/bb/ui/uievent.py | |
parent | adba3edca22b46235bbeb02bbff1eeaa09bdeedf (diff) | |
download | ast2050-yocto-poky-fc49a6f00fc1ae3430ab3eb9615472efff0a7fce.zip ast2050-yocto-poky-fc49a6f00fc1ae3430ab3eb9615472efff0a7fce.tar.gz |
bitbake: server/xmlrpc: Simlify featureset handling
Rather than passing featureset around various places where the data doesn't
really belong, run a command at connection time to set the appropriate
features. This is similar to what the process server does.
(Bitbake rev: c3b5cc5691291c74dd315c4439c80e0e4b2b5c1d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/uievent.py')
-rw-r--r-- | bitbake/lib/bb/ui/uievent.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/uievent.py b/bitbake/lib/bb/ui/uievent.py index 2133b44..98658f6 100644 --- a/bitbake/lib/bb/ui/uievent.py +++ b/bitbake/lib/bb/ui/uievent.py @@ -28,7 +28,7 @@ import socket, threading, pickle from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler class BBUIEventQueue: - def __init__(self, BBServer, clientinfo=("localhost, 0"), featureset=[]): + def __init__(self, BBServer, clientinfo=("localhost, 0")): self.eventQueue = [] self.eventQueueLock = threading.Lock() @@ -44,7 +44,7 @@ class BBUIEventQueue: server.register_function( self.send_event, "event.sendpickle" ) server.socket.settimeout(1) - self.EventHandle = self.BBServer.registerEventHandler(self.host, self.port, featureset) + self.EventHandle = self.BBServer.registerEventHandler(self.host, self.port) if (self.EventHandle == None): bb.fatal("Could not register UI event handler") |