diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-08 22:01:57 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-08 22:01:57 +0000 |
commit | e7783bbe0559abb91f5038cf83575c0f25138af2 (patch) | |
tree | 0fb130be90489e9807c7be9b8b375e93b9e26c61 /lib/bb/runqueue.py | |
parent | 8c6cd1e8dd224bc1cc92736cbb7e113fd1fb5aae (diff) | |
download | bitbake-e7783bbe0559abb91f5038cf83575c0f25138af2.tar.gz |
runqueue: Fix errors when using -S printdiff
When running printdiff, messages like:
"Can't find a task we're supposed to have written out?"
might be shown. This happens when hashequivalence is enabled and is due
to the use of "hash" when "unihash" should be used (which defaults back
to hash). Changing this fixed various errors oe-selftest highlighted.
Also print the task ID when erroring about a missing task as it aids
debugging.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r-- | lib/bb/runqueue.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 074edd076..475c3c505 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1767,14 +1767,14 @@ class RunQueue: for tid in invalidtasks: (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) pn = self.rqdata.dataCaches[mc].pkg_fn[taskfn] - h = self.rqdata.runtaskentries[tid].hash + h = self.rqdata.runtaskentries[tid].unihash matches = bb.siggen.find_siginfo(pn, taskname, [], self.cooker.databuilder.mcdata[mc]) match = None for m in matches: if h in m: match = m if match is None: - bb.fatal("Can't find a task we're supposed to have written out? (hash: %s)?" % h) + bb.fatal("Can't find a task we're supposed to have written out? (hash: %s tid: %s)?" % (h, tid)) matches = {k : v for k, v in iter(matches.items()) if h not in k} if matches: latestmatch = sorted(matches.keys(), key=lambda f: matches[f])[-1] |