diff options
author | Kevin Tian <kevin.tian@intel.com> | 2010-11-15 10:58:49 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-11-15 23:04:06 +0000 |
commit | eaa188f3b9c68a81fa845de7dcdce68e01d0d2d3 (patch) | |
tree | a817de0329600a028b1c42cc4ab1ba500a5294e5 /bitbake | |
parent | 62f93ac42de38f58028542d2b6d44d5677ac557b (diff) | |
download | poky-eaa188f3b9c68a81fa845de7dcdce68e01d0d2d3.tar.gz |
siggen.py: fix comparison around runtaskdeps
two dep lists should be sorted before the comparison, or else it just
causes false-positive confusion.
Also fix 'taskdeps' to 'runtaskdeps' when printing out the difference.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/siggen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index ffbab396c1..5c53a86f3a 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py | |||
@@ -226,8 +226,8 @@ def compare_sigfiles(a, b): | |||
226 | #if removed: | 226 | #if removed: |
227 | # print "Dependency on Variable %s was removed (value %s)" % (dep, a_data['gendeps'][dep]) | 227 | # print "Dependency on Variable %s was removed (value %s)" % (dep, a_data['gendeps'][dep]) |
228 | 228 | ||
229 | if 'runtaskdeps' in a_data and 'runtaskdeps' in b_data and a_data['runtaskdeps'] != b_data['runtaskdeps']: | 229 | if 'runtaskdeps' in a_data and 'runtaskdeps' in b_data and sorted(a_data['runtaskdeps']) != sorted(b_data['runtaskdeps']): |
230 | print "Tasks this task depends on changed from %s to %s" % (a_data['taskdeps'], b_data['taskdeps']) | 230 | print "Tasks this task depends on changed from %s to %s" % (sorted(a_data['runtaskdeps']), sorted(b_data['runtaskdeps'])) |
231 | 231 | ||
232 | if 'runtaskhashes' in a_data: | 232 | if 'runtaskhashes' in a_data: |
233 | for dep in a_data['runtaskhashes']: | 233 | for dep in a_data['runtaskhashes']: |