diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-08 23:36:49 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-09 14:26:55 +0100 |
commit | 68f53dd77fe0bbfa044bd037a9484e0e1c9088b4 (patch) | |
tree | c3da7d20e355b6cda6336df347836a7fa3c13e4e | |
parent | 05d31fa1f56bd3d3d363a16a421d9ba7541d4293 (diff) | |
download | bitbake-68f53dd77fe0bbfa044bd037a9484e0e1c9088b4.tar.gz |
bitbake-worker: Simple code cleanup
start/end are unused here and we can improve the code conditional blocks.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bin/bitbake-worker | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/bitbake-worker b/bin/bitbake-worker index 96a4d4cde..c429dc76d 100755 --- a/bin/bitbake-worker +++ b/bin/bitbake-worker @@ -295,13 +295,12 @@ class BitbakeWorker(object): def serve(self): while True: (ready, _, _) = select.select([self.input] + [i.input for i in self.build_pipes.values()], [] , [], 1) - if self.input in ready or len(self.queue): - start = len(self.queue) + if self.input in ready: try: self.queue = self.queue + self.input.read() except (OSError, IOError): pass - end = len(self.queue) + if len(self.queue): self.handle_item("cookerconfig", self.handle_cookercfg) self.handle_item("workerdata", self.handle_workerdata) self.handle_item("runtask", self.handle_runtask) |