siggen: Remove broken optimisation
PATCH 1/1 siggen: Remove broken optimisation
When a single signature is locked, dependent task checksum calculations fail. This in turn is because get_unihash cannot be cached correctly by this function. Remove that has turned out to be a poor optimisation to avoid that bug.
Signed-off-by Richard Purdie <[email protected]>
--- lib/bb/siggen.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
lib/bb/siggen.py +1 -7
@@ -311,13 +311,7 @@ class SignatureGeneratorBasic(SignatureGenerator): data = self.basehash[tid] for dep in self.runtaskdeps[tid]: - if dep in self.unihash: - if self.unihash[dep] is None: - data = data + self.taskhash[dep] - else: - data = data + self.unihash[dep] - else: - data = data + self.get_unihash(dep) + data = data + self.get_unihash(dep) for (f, cs) in self.file_checksum_values[tid]: if cs:
Signature · 1 line
2.25.1