From eaa188f3b9c68a81fa845de7dcdce68e01d0d2d3 Mon Sep 17 00:00:00 2001 From: Kevin Tian Date: Mon, 15 Nov 2010 10:58:49 +0800 Subject: 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 --- bitbake/lib/bb/siggen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/siggen.py') diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index ffbab396c..5c53a86f3 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py @@ -226,8 +226,8 @@ def compare_sigfiles(a, b): #if removed: # print "Dependency on Variable %s was removed (value %s)" % (dep, a_data['gendeps'][dep]) - if 'runtaskdeps' in a_data and 'runtaskdeps' in b_data and a_data['runtaskdeps'] != b_data['runtaskdeps']: - print "Tasks this task depends on changed from %s to %s" % (a_data['taskdeps'], b_data['taskdeps']) + if 'runtaskdeps' in a_data and 'runtaskdeps' in b_data and sorted(a_data['runtaskdeps']) != sorted(b_data['runtaskdeps']): + print "Tasks this task depends on changed from %s to %s" % (sorted(a_data['runtaskdeps']), sorted(b_data['runtaskdeps'])) if 'runtaskhashes' in a_data: for dep in a_data['runtaskhashes']: -- cgit v1.2.3