summaryrefslogtreecommitdiffstats
path: root/bitbake
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 21:26:15 +0000
commit456f5e0d2325c24bcd51fc8d8fffb415d7cbc3a8 (patch)
tree312f92721fdc82969fe3c5c9a9fae539ab18d273 /bitbake
parent8e2bb3baf97751b7a984295737a5f543d2dc3b7d (diff)
downloadpoky-456f5e0d2325c24bcd51fc8d8fffb415d7cbc3a8.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: 4299afdd290f9d1c5616598f5fe83c195a64b63c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-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: