diff options
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
| -rw-r--r-- | bitbake/lib/bb/runqueue.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 059f800b65..83c3ccf882 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
| @@ -91,6 +91,10 @@ class RunQueue: | |||
| 91 | 91 | ||
| 92 | taskData = self.taskData | 92 | taskData = self.taskData |
| 93 | 93 | ||
| 94 | if len(taskData.tasks_name) == 0: | ||
| 95 | # Nothing to do | ||
| 96 | return | ||
| 97 | |||
| 94 | bb.msg.note(1, bb.msg.domain.RunQueue, "Preparing Runqueue") | 98 | bb.msg.note(1, bb.msg.domain.RunQueue, "Preparing Runqueue") |
| 95 | 99 | ||
| 96 | for task in range(len(taskData.tasks_name)): | 100 | for task in range(len(taskData.tasks_name)): |
| @@ -536,8 +540,8 @@ class RunQueue: | |||
| 536 | self.stats.taskFailed() | 540 | self.stats.taskFailed() |
| 537 | del self.build_pids[result[0]] | 541 | del self.build_pids[result[0]] |
| 538 | self.active_builds = self.active_builds - 1 | 542 | self.active_builds = self.active_builds - 1 |
| 539 | if len(self.failed_fnids) > 0: | 543 | bb.msg.note(1, bb.msg.domain.RunQueue, "Tasks Summary: Attempted %d tasks of which %d didn't need to be rerun and %d failed." % (self.stats.completed, self.stats.skipped, self.stats.failed)) |
| 540 | return self.failed_fnids | 544 | return self.failed_fnids |
| 541 | except KeyboardInterrupt: | 545 | except KeyboardInterrupt: |
| 542 | bb.msg.note(1, bb.msg.domain.RunQueue, "Sending SIGINT to remaining %s tasks" % self.active_builds) | 546 | bb.msg.note(1, bb.msg.domain.RunQueue, "Sending SIGINT to remaining %s tasks" % self.active_builds) |
| 543 | for k, v in self.build_pids.iteritems(): | 547 | for k, v in self.build_pids.iteritems(): |
