diff mbox series

[wrynose,2.18,2/6] runqueue: fix bad check in process_possible_migrations

Message ID 021043086fdb0e69d9ef543807edb845006a5604.1790495161.git.yoann.congal@smile.fr
State RFC, archived
Delegated to: Yoann Congal
Headers show
Series [wrynose,2.18,1/6] runqueue: Fix pending_hash_index not including taskname | expand

Commit Message

Yoann Congal Sept. 27, 2026, 7:46 a.m. UTC
From: Chris Laplante <chris.laplante@agilent.com>

This was probably a copy-paste error from above. Detected by PyCharm's
code analysis (Local variable p might be referenced before assignment).

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7f24c51c049bde59d28d28bc83dad2a769ec1eb5)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
 lib/bb/runqueue.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 544081053..ff8ecdf81 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -2610,7 +2610,7 @@  class RunQueueExecute:
             next = set()
             ready = {}
             for tid in current:
-                if self.rqdata.runtaskentries[p].depends and not self.rqdata.runtaskentries[tid].depends.isdisjoint(total):
+                if self.rqdata.runtaskentries[tid].depends and not self.rqdata.runtaskentries[tid].depends.isdisjoint(total):
                     continue
                 # get_taskhash for a given tid *must* be called before get_unihash* below
                 ready[tid] = bb.parse.siggen.get_taskhash(tid, self.rqdata.runtaskentries[tid].depends, self.rqdata.dataCaches)