summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/siggen.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-25 17:18:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-25 17:58:11 +0000
commitcdca61ab03b1cc79f17b9618a03b12e53171783d (patch)
tree9fb85b52c5821535f32f033c5a5392ec3f0d6bee /bitbake/lib/bb/siggen.py
parent2ca41234b5f7d8293b5b56e69b0daebe8369cdbc (diff)
downloadpoky-cdca61ab03b1cc79f17b9618a03b12e53171783d.tar.gz
bitbake: siggen: Fix hashequiv bug where new hash wasn't referenced correctly
If a hash is reported to the hash server, the stamp written out by the current task didn't account for any new hash the server may have provided. Fix this so the correct stamp is written. This means "bitbake X; bitbake X" no longer rebuilds lots of things when hashequiv is active. (Bitbake rev: 9dc5178f56ab8ae37e1a646c09117c503e48d072) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/siggen.py')
-rw-r--r--bitbake/lib/bb/siggen.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index a4bb1ff7fb..e19812b17c 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -508,6 +508,7 @@ class SignatureGeneratorUniHashMixIn(object):
508 if new_unihash != unihash: 508 if new_unihash != unihash:
509 bb.debug(1, 'Task %s unihash changed %s -> %s by server %s' % (taskhash, unihash, new_unihash, self.server)) 509 bb.debug(1, 'Task %s unihash changed %s -> %s by server %s' % (taskhash, unihash, new_unihash, self.server))
510 bb.event.fire(bb.runqueue.taskUniHashUpdate(fn + ':do_' + task, new_unihash), d) 510 bb.event.fire(bb.runqueue.taskUniHashUpdate(fn + ':do_' + task, new_unihash), d)
511 self.set_unihash(tid, new_unihash)
511 else: 512 else:
512 bb.debug(1, 'Reported task %s as unihash %s to %s' % (taskhash, unihash, self.server)) 513 bb.debug(1, 'Reported task %s as unihash %s to %s' % (taskhash, unihash, self.server))
513 except hashserv.client.HashConnectionError as e: 514 except hashserv.client.HashConnectionError as e: