diff options
| author | Richard Purdie <richard@openedhand.com> | 2007-05-22 11:50:37 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2007-05-22 11:50:37 +0000 |
| commit | d05bcee7f21250854c56fd47b1d5c064ac95efb2 (patch) | |
| tree | 6941498b4a0bf46d89fe441e91f2c57e59dbc915 /bitbake/lib/bb/runqueue.py | |
| parent | 6e49fdb6db438a947c0122a350cd223dc1ab12db (diff) | |
| download | poky-d05bcee7f21250854c56fd47b1d5c064ac95efb2.tar.gz | |
bitbake: Merge bugfixes from bitbake-1.8 svn
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1759 311d38ba-8fff-0310-9ca6-ca027cbcb966
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(): |
