From: Kevin Tian Date: Mon, 22 Nov 2010 12:52:27 +0000 (+0800) Subject: siggen.py: set 'runtaskdeps' correctly X-Git-Tag: rev_ivi_2015_02_04~24208 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40388b7c76f6dd576b43f26f2cbfefef570446f1;p=scm%2Fbb%2Ftizen-distro.git siggen.py: set 'runtaskdeps' correctly Now 'runtaskdeps' is assigned before taskhash whitelist is filtered out, and thus always contains original task dependencies. This causes problem to diagnose sstate related problem. So fix it by appending filtered dep to 'runtaskdeps' in the fly. Signed-off-by: Kevin Tian --- diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py index 5c53a86..9e956ee 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py @@ -106,7 +106,7 @@ class SignatureGeneratorBasic(SignatureGenerator): def get_taskhash(self, fn, task, deps, dataCache): k = fn + "." + task data = dataCache.basetaskhash[k] - self.runtaskdeps[k] = deps + self.runtaskdeps[k] = [] for dep in sorted(deps): if self.twl and self.twl.search(dataCache.pkg_fn[fn]): #bb.note("Skipping %s" % dep) @@ -114,6 +114,7 @@ class SignatureGeneratorBasic(SignatureGenerator): if dep not in self.taskhash: bb.fatal("%s is not in taskhash, caller isn't calling in dependency order?", dep) data = data + self.taskhash[dep] + self.runtaskdeps[k].append(dep) h = hashlib.md5(data).hexdigest() self.taskhash[k] = h #d.setVar("BB_TASKHASH_task-%s" % task, taskhash[task]) @@ -258,8 +259,3 @@ def dump_sigfile(a): if 'runtaskhashes' in a_data: for dep in a_data['runtaskhashes']: print "Hash for dependent task %s is %s" % (dep, a_data['runtaskhashes'][dep]) - - - - -