aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-02-16 15:24:24 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-21 13:48:52 +0000
commit5f73918d99e1aff5447830971eb993f4a7e1e4e1 (patch)
tree5b755d89e6a0cd9732e07e99409217bb9c183fb5
parent0f42f6b640813ca4d5a9d7b4292dafea563d2d7d (diff)
downloadopenembedded-core-contrib-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>
-rw-r--r--bitbake/lib/bb/runqueue.py5
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:
def copy(self):
obj = self.__class__(self.total)
- obj.completed = self.completed
- obj.skipped = self.skipped
- obj.failed = self.failed
- obj.active = self.active
+ obj.__dict__.update(self.__dict__)
return obj
def taskFailed(self):