diff options
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 8a88fe026d..abf7c003e5 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -46,6 +46,14 @@ class RunQueueStats: | |||
46 | self.active = 0 | 46 | self.active = 0 |
47 | self.total = total | 47 | self.total = total |
48 | 48 | ||
49 | def copy(self): | ||
50 | obj = self.__class__(self.total) | ||
51 | obj.completed = self.completed | ||
52 | obj.skipped = self.skipped | ||
53 | obj.failed = self.failed | ||
54 | obj.active = self.active | ||
55 | return obj | ||
56 | |||
49 | def taskFailed(self): | 57 | def taskFailed(self): |
50 | self.active = self.active - 1 | 58 | self.active = self.active - 1 |
51 | self.failed = self.failed + 1 | 59 | self.failed = self.failed + 1 |
@@ -1594,7 +1602,7 @@ class runQueueEvent(bb.event.Event): | |||
1594 | def __init__(self, task, stats, rq): | 1602 | def __init__(self, task, stats, rq): |
1595 | self.taskid = task | 1603 | self.taskid = task |
1596 | self.taskstring = rq.rqdata.get_user_idstring(task) | 1604 | self.taskstring = rq.rqdata.get_user_idstring(task) |
1597 | self.stats = stats | 1605 | self.stats = stats.copy() |
1598 | bb.event.Event.__init__(self) | 1606 | bb.event.Event.__init__(self) |
1599 | 1607 | ||
1600 | class runQueueTaskStarted(runQueueEvent): | 1608 | class runQueueTaskStarted(runQueueEvent): |