diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-02-16 15:24:24 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-21 13:48:52 +0000 |
commit | 5f73918d99e1aff5447830971eb993f4a7e1e4e1 (patch) | |
tree | 5b755d89e6a0cd9732e07e99409217bb9c183fb5 /bitbake | |
parent | 0f42f6b640813ca4d5a9d7b4292dafea563d2d7d (diff) | |
download | poky-5f73918d99e1aff5447830971eb993f4a7e1e4e1.tar.gz |
runqueue: simplify RunQueueStats.copy
(Bitbake rev: 778571f155139fcf43d0e30e875c39d6592ae03f)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index abf7c003e5..f61e913b9e 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -48,10 +48,7 @@ class RunQueueStats: | |||
48 | 48 | ||
49 | def copy(self): | 49 | def copy(self): |
50 | obj = self.__class__(self.total) | 50 | obj = self.__class__(self.total) |
51 | obj.completed = self.completed | 51 | obj.__dict__.update(self.__dict__) |
52 | obj.skipped = self.skipped | ||
53 | obj.failed = self.failed | ||
54 | obj.active = self.active | ||
55 | return obj | 52 | return obj |
56 | 53 | ||
57 | def taskFailed(self): | 54 | def taskFailed(self): |