summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/siggen.py
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2011-11-23 02:08:50 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-23 23:40:06 +0000
commita89443e1e0d957464ac024f97a159a71d14b4cd6 (patch)
tree25776519658082a2db1bd6a891eab6e5664a4b48 /bitbake/lib/bb/siggen.py
parent319ea222ee5e6bf01386f344ec9f9b8b49f639eb (diff)
downloadpoky-a89443e1e0d957464ac024f97a159a71d14b4cd6.tar.gz
bitbake: print out symmetric difference when comparing sigs
This is useful for really longs lists to pinpoint what has actually changed (Bitbake rev: f1eb6d3dcc10c42bb09383a87bde3afa69bc6ed9) Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/siggen.py')
-rw-r--r--bitbake/lib/bb/siggen.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 217f29b3e2..3eed66425e 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -248,9 +248,11 @@ def compare_sigfiles(a, b):
248 248
249 if 'basewhitelist' in a_data and a_data['basewhitelist'] != b_data['basewhitelist']: 249 if 'basewhitelist' in a_data and a_data['basewhitelist'] != b_data['basewhitelist']:
250 print "basewhitelist changed from %s to %s" % (a_data['basewhitelist'], b_data['basewhitelist']) 250 print "basewhitelist changed from %s to %s" % (a_data['basewhitelist'], b_data['basewhitelist'])
251 print "changed items: %s" % a_data['basewhitelist'].symmetric_difference(b_data['basewhitelist'])
251 252
252 if 'taskwhitelist' in a_data and a_data['taskwhitelist'] != b_data['taskwhitelist']: 253 if 'taskwhitelist' in a_data and a_data['taskwhitelist'] != b_data['taskwhitelist']:
253 print "taskwhitelist changed from %s to %s" % (a_data['taskwhitelist'], b_data['taskwhitelist']) 254 print "taskwhitelist changed from %s to %s" % (a_data['taskwhitelist'], b_data['taskwhitelist'])
255 print "changed items: %s" % a_data['taskwhitelist'].symmetric_difference(b_data['taskwhitelist'])
254 256
255 if a_data['taskdeps'] != b_data['taskdeps']: 257 if a_data['taskdeps'] != b_data['taskdeps']:
256 print "Task dependencies changed from:\n%s\nto:\n%s" % (sorted(a_data['taskdeps']), sorted(b_data['taskdeps'])) 258 print "Task dependencies changed from:\n%s\nto:\n%s" % (sorted(a_data['taskdeps']), sorted(b_data['taskdeps']))
@@ -262,6 +264,7 @@ def compare_sigfiles(a, b):
262 if changed: 264 if changed:
263 for dep in changed: 265 for dep in changed:
264 print "List of dependencies for variable %s changed from %s to %s" % (dep, a_data['gendeps'][dep], b_data['gendeps'][dep]) 266 print "List of dependencies for variable %s changed from %s to %s" % (dep, a_data['gendeps'][dep], b_data['gendeps'][dep])
267 print "changed items: %s" % a_data['gendeps'][dep].symmetric_difference(b_data['gendeps'][dep])
265 if added: 268 if added:
266 for dep in added: 269 for dep in added:
267 print "Dependency on variable %s was added" % (dep) 270 print "Dependency on variable %s was added" % (dep)
@@ -290,6 +293,7 @@ def compare_sigfiles(a, b):
290 print "Hash for dependent task %s changed from %s to %s" % (dep, a[dep], b[dep]) 293 print "Hash for dependent task %s changed from %s to %s" % (dep, a[dep], b[dep])
291 elif 'runtaskdeps' in a_data and 'runtaskdeps' in b_data and sorted(a_data['runtaskdeps']) != sorted(b_data['runtaskdeps']): 294 elif 'runtaskdeps' in a_data and 'runtaskdeps' in b_data and sorted(a_data['runtaskdeps']) != sorted(b_data['runtaskdeps']):
292 print "Tasks this task depends on changed from %s to %s" % (sorted(a_data['runtaskdeps']), sorted(b_data['runtaskdeps'])) 295 print "Tasks this task depends on changed from %s to %s" % (sorted(a_data['runtaskdeps']), sorted(b_data['runtaskdeps']))
296 print "changed items: %s" % a_data['runtaskdeps'].symmetric_difference(b_data['runtaskdeps'])
293 297
294def dump_sigfile(a): 298def dump_sigfile(a):
295 p1 = pickle.Unpickler(file(a, "rb")) 299 p1 = pickle.Unpickler(file(a, "rb"))