summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-19 09:37:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-20 12:26:05 +0000
commita4457cf939a524e467c9364b18bf2f71de163029 (patch)
tree3c0dd2453820b1f7423b5a839b11a39e5bf804ab /bitbake
parent6d2f3440bba61bf7460d04c1dde34757d2ae6725 (diff)
downloadpoky-a4457cf939a524e467c9364b18bf2f71de163029.tar.gz
bitbake: siggen: When printing signatures recursively, limit the output
Currently the code prints all differences. If the task dependencies have changed hash, we recurse into those and print those differences as well. This leads to a lot of output. The reality is if the parents changed signature, we might as well just say that and recurse with no other output since we're much more interested in how the parents changed in nearly all cases. The changes in the parent are probably the same ones we'd have printed at each level anyway. By doing this we focus the output more carefully on the thing the user wants/needs to see. (Bitbake rev: 7a17fd6e51a76d3582c357b79f5ef86e1969650c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/siggen.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 52e698c469..370f6ad3b3 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -430,9 +430,11 @@ def compare_sigfiles(a, b, recursecb = None):
430 for dep in changed: 430 for dep in changed:
431 output.append("Hash for dependent task %s changed from %s to %s" % (clean_basepath(dep), a[dep], b[dep])) 431 output.append("Hash for dependent task %s changed from %s to %s" % (clean_basepath(dep), a[dep], b[dep]))
432 if callable(recursecb): 432 if callable(recursecb):
433 # If a dependent hash changed, might as well print the line above and then defer to the changes in
434 # that hash since in all likelyhood, they're the same changes this task also saw.
433 recout = recursecb(dep, a[dep], b[dep]) 435 recout = recursecb(dep, a[dep], b[dep])
434 if recout: 436 if recout:
435 output.extend(recout) 437 output = [output[-1]] + recout
436 438
437 a_taint = a_data.get('taint', None) 439 a_taint = a_data.get('taint', None)
438 b_taint = b_data.get('taint', None) 440 b_taint = b_data.get('taint', None)