summaryrefslogtreecommitdiff
path: root/bitbake
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 /bitbake
parent4aec2155a5f0ac051e29ad8a749c04fd37c47643 (diff)
downloadopenembedded-core-d94f0f74c1137d90f88be57c32beb1bc02843f38.tar.gz
openembedded-core-d94f0f74c1137d90f88be57c32beb1bc02843f38.tar.bz2
openembedded-core-d94f0f74c1137d90f88be57c32beb1bc02843f38.zip
bitbake/siggen.py: Improve debugging of checksums
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-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):
sigfile = stampbase + "." + task + ".sigbasedata" + "." + self.basehash[k]
data = {}
data['basewhitelist'] = self.basewhitelist
+ data['taskwhitelist'] = self.taskwhitelist
data['taskdeps'] = self.taskdeps[fn][task]
data['basehash'] = self.basehash[k]
data['gendeps'] = {}
@@ -166,13 +167,12 @@ def compare_sigfiles(a, b):
removed = sb - sa
return changed, added, removed
- if a_data['basewhitelist'] != b_data['basewhitelist']:
+ if 'basewhitelist' in a_data and a_data['basewhitelist'] != b_data['basewhitelist']:
print "basewhitelist changed from %s to %s" % (a_data['basewhitelist'], b_data['basewhitelist'])
- if a_data['taskwhitelist'] != b_data['taskwhitelist']:
+ if 'taskwhitelist' in a_data and a_data['taskwhitelist'] != b_data['taskwhitelist']:
print "taskwhitelist changed from %s to %s" % (a_data['taskwhitelist'], b_data['taskwhitelist'])
-
if a_data['taskdeps'] != b_data['taskdeps']:
print "Task dependencies changed from %s to %s" % (sorted(a_data['taskdeps']), sorted(b_data['taskdeps']))
@@ -183,10 +183,12 @@ def compare_sigfiles(a, b):
if changed:
for dep in changed:
print "List of dependencies for variable %s changed from %s to %s" % (dep, a_data['gendeps'][dep], b_data['gendeps'][dep])
- #if added:
- # print "Dependency on variable %s was added (value %s)" % (dep, b_data['gendeps'][dep])
- #if removed:
- # print "Dependency on Variable %s was removed (value %s)" % (dep, a_data['gendeps'][dep])
+ if added:
+ for dep in added:
+ print "Dependency on variable %s was added" % (dep)
+ if removed:
+ for dep in removed:
+ print "Dependency on Variable %s was removed" % (dep)
changed, added, removed = dict_diff(a_data['varvals'], b_data['varvals'])