summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server/xmlrpc.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-11-28 15:01:08 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-11-28 13:54:31 -0800
commitd4125bcac0b1ff225dbfd90d2a5722a2f4e64ff8 (patch)
treefc42e4f4518015a160edfa88f23ef699839171e2 /bitbake/lib/bb/server/xmlrpc.py
parentc0202071428fde6ef0a93de9c99d416624628813 (diff)
downloadpoky-d4125bcac0b1ff225dbfd90d2a5722a2f4e64ff8.tar.gz
bitbake: Simplfy pre and post cooker hooks
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/server/xmlrpc.py')
-rw-r--r--bitbake/lib/bb/server/xmlrpc.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py
index 30b83d2b13..5d3cc3e106 100644
--- a/bitbake/lib/bb/server/xmlrpc.py
+++ b/bitbake/lib/bb/server/xmlrpc.py
@@ -87,7 +87,7 @@ class BitBakeServer(SimpleXMLRPCServer):
87 # remove this when you're done with debugging 87 # remove this when you're done with debugging
88 # allow_reuse_address = True 88 # allow_reuse_address = True
89 89
90 def __init__(self, cooker, pre_serve, post_serve, interface = ("localhost", 0)): 90 def __init__(self, cooker, interface = ("localhost", 0)):
91 """ 91 """
92 Constructor 92 Constructor
93 """ 93 """
@@ -100,8 +100,6 @@ class BitBakeServer(SimpleXMLRPCServer):
100 commands = BitBakeServerCommands(self, cooker) 100 commands = BitBakeServerCommands(self, cooker)
101 self.autoregister_all_functions(commands, "") 101 self.autoregister_all_functions(commands, "")
102 self.cooker = cooker 102 self.cooker = cooker
103 self.pre_serve = pre_serve
104 self.post_serve = post_serve
105 103
106 def autoregister_all_functions(self, context, prefix): 104 def autoregister_all_functions(self, context, prefix):
107 """ 105 """
@@ -125,8 +123,6 @@ class BitBakeServer(SimpleXMLRPCServer):
125 """ 123 """
126 Serve Requests. Overloaded to honor a quit command 124 Serve Requests. Overloaded to honor a quit command
127 """ 125 """
128 self.pre_serve()
129
130 self.quit = False 126 self.quit = False
131 self.timeout = 0 # Run Idle calls for our first callback 127 self.timeout = 0 # Run Idle calls for our first callback
132 while not self.quit: 128 while not self.quit:
@@ -163,7 +159,6 @@ class BitBakeServer(SimpleXMLRPCServer):
163 except: 159 except:
164 pass 160 pass
165 161
166 self.post_serve()
167 self.server_close() 162 self.server_close()
168 return 163 return
169 164