Skip to contentSkip to conversation

runqueue: fix bad check in process_possible_migrations

PATCH [email protected] 1 participant 1 message Aug 27 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 21 lines

From: Chris Laplante <[email protected]>

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

---
 lib/bb/runqueue.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/runqueue.py index renamed from lib/bb/runqueue.py +0 -0

a4689e134..ca0fd2945 100644

lib/bb/runqueue.py +0 -1
@@ -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

Quoted 8 lines

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)
--
2.43.0

Gentle ping - I think this patch got lost.

Thanks,
Chris