[bitbake-devel,18/26] runqueue: Code simplification

Submitted by Richard Purdie on July 10, 2019, 11:54 p.m. | Patch ID: 162969

Details

Message ID 20190710235420.23825-18-richard.purdie@linuxfoundation.org
State Accepted
Commit 01dfc37095e5c661f275917d22aa1c1ad7f24d8d
Headers show

Commit Message

Richard Purdie July 10, 2019, 11:54 p.m.
Simplfy some looping code which no longer has any purpose.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/runqueue.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Patch hide | download patch | download mbox

diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 05bc9f9488..13e90e709a 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -2363,10 +2363,7 @@  def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq):
     # Sanity check all dependencies could be changed to setscene task references
     for taskcounter, tid in enumerate(rqdata.runtaskentries):
         if tid in rqdata.runq_setscene_tids:
-            deps = set()
-            for dep in sq_revdeps_new[tid]:
-                deps.add(dep)
-            sq_revdeps_squash[tid] = deps
+            sq_revdeps_squash[tid] = set(sq_revdeps_new[tid])
         elif len(sq_revdeps_new[tid]) != 0:
             bb.msg.fatal("RunQueue", "Something went badly wrong during scenequeue generation, aborting. Please report this problem.")
         rqdata.init_progress_reporter.update(taskcounter)