summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-13 12:17:33 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-13 12:17:33 +0100
commitd94f0f74c1137d90f88be57c32beb1bc02843f38 (patch)
tree0611ff8cb12ee5b0be396e51117fd5cef09f323b
parent4aec2155a5f0ac051e29ad8a749c04fd37c47643 (diff)
downloadpoky-d94f0f74c1137d90f88be57c32beb1bc02843f38.tar.gz
bitbake/siggen.py: Improve debugging of checksums
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--bitbake/lib/bb/siggen.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 3cb67042b8..949ad4e27f 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -115,6 +115,7 @@ class SignatureGeneratorBasic(SignatureGenerator):
115 sigfile = stampbase + "." + task + ".sigbasedata" + "." + self.basehash[k] 115 sigfile = stampbase + "." + task + ".sigbasedata" + "." + self.basehash[k]
116 data = {} 116 data = {}
117 data['basewhitelist'] = self.basewhitelist 117 data['basewhitelist'] = self.basewhitelist
118 data['taskwhitelist'] = self.taskwhitelist
118 data['taskdeps'] = self.taskdeps[fn][task] 119 data['taskdeps'] = self.taskdeps[fn][task]
119 data['basehash'] = self.basehash[k] 120 data['basehash'] = self.basehash[k]
120 data['gendeps'] = {} 121 data['gendeps'] = {}
@@ -166,13 +167,12 @@ def compare_sigfiles(a, b):
166 removed = sb - sa 167 removed = sb - sa
167 return changed, added, removed 168 return changed, added, removed
168 169
169 if a_data['basewhitelist'] != b_data['basewhitelist']: 170 if 'basewhitelist' in a_data and a_data['basewhitelist'] != b_data['basewhitelist']:
170 print "basewhitelist changed from %s to %s" % (a_data['basewhitelist'], b_data['basewhitelist']) 171 print "basewhitelist changed from %s to %s" % (a_data['basewhitelist'], b_data['basewhitelist'])
171 172
172 if a_data['taskwhitelist'] != b_data['taskwhitelist']: 173 if 'taskwhitelist' in a_data and a_data['taskwhitelist'] != b_data['taskwhitelist']:
173 print "taskwhitelist changed from %s to %s" % (a_data['taskwhitelist'], b_data['taskwhitelist']) 174 print "taskwhitelist changed from %s to %s" % (a_data['taskwhitelist'], b_data['taskwhitelist'])
174 175
175
176 if a_data['taskdeps'] != b_data['taskdeps']: 176 if a_data['taskdeps'] != b_data['taskdeps']:
177 print "Task dependencies changed from %s to %s" % (sorted(a_data['taskdeps']), sorted(b_data['taskdeps'])) 177 print "Task dependencies changed from %s to %s" % (sorted(a_data['taskdeps']), sorted(b_data['taskdeps']))
178 178
@@ -183,10 +183,12 @@ def compare_sigfiles(a, b):
183 if changed: 183 if changed:
184 for dep in changed: 184 for dep in changed:
185 print "List of dependencies for variable %s changed from %s to %s" % (dep, a_data['gendeps'][dep], b_data['gendeps'][dep]) 185 print "List of dependencies for variable %s changed from %s to %s" % (dep, a_data['gendeps'][dep], b_data['gendeps'][dep])
186 #if added: 186 if added:
187 # print "Dependency on variable %s was added (value %s)" % (dep, b_data['gendeps'][dep]) 187 for dep in added:
188 #if removed: 188 print "Dependency on variable %s was added" % (dep)
189 # print "Dependency on Variable %s was removed (value %s)" % (dep, a_data['gendeps'][dep]) 189 if removed:
190 for dep in removed:
191 print "Dependency on Variable %s was removed" % (dep)
190 192
191 193
192 changed, added, removed = dict_diff(a_data['varvals'], b_data['varvals']) 194 changed, added, removed = dict_diff(a_data['varvals'], b_data['varvals'])