3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-05 06:04:06 +00:00

Fix fix for chained tasks

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2018-05-01 15:58:55 +02:00
parent 162bdc9a3b
commit 35d956c7bb

View file

@ -38,14 +38,14 @@ class SbyTask:
self.linebuffer = ""
self.logstderr = logstderr
self.job.tasks_pending.append(self)
for dep in self.deps:
dep.register_dep(self)
self.output_callback = None
self.exit_callback = None
self.job.tasks_pending.append(self)
def register_dep(self, next_task):
if self.finished:
next_task.poll()
@ -179,7 +179,7 @@ class SbyJob:
for task in self.tasks_pending:
task.poll()
while len(self.tasks_running) or len(self.tasks_pending):
while len(self.tasks_running):
fds = []
for task in self.tasks_running:
if task.running: