diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-25 11:20:33 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-25 11:25:59 +0000 |
commit | 4bf73cbbe204b1175f7a92322a440a6642ffc083 (patch) | |
tree | dac14e9ff3d7aa52b8034a6bdd370ff61d26650f /bitbake/lib | |
parent | 37c4f373e42b54f6c65b8482bd1172563fbc1ea5 (diff) | |
download | ast2050-yocto-poky-4bf73cbbe204b1175f7a92322a440a6642ffc083.zip ast2050-yocto-poky-4bf73cbbe204b1175f7a92322a440a6642ffc083.tar.gz |
bitbake/siggen.py: Don't backtrace if the taskhash data isn't present
This allows the code to safely fall back to dumping the basehash data
if the taskhash data isn't present for some reason. We could effecitvely
obsolete the runtime option and use this approach instead exclusively.
(Bitbake rev: 5ace320ccc01f4e326f90b7ba060dcbff3380dca)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-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 7580742..91b4160 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py @@ -159,7 +159,7 @@ class SignatureGeneratorBasic(SignatureGenerator): k = fn + "." + task if runtime == "customfile": sigfile = stampbase - elif runtime: + elif runtime and k in self.taskhash: sigfile = stampbase + "." + task + ".sigdata" + "." + self.taskhash[k] else: sigfile = stampbase + "." + task + ".sigbasedata" + "." + self.basehash[k] @@ -180,7 +180,7 @@ class SignatureGeneratorBasic(SignatureGenerator): data['gendeps'][dep] = self.gendeps[fn][dep] data['varvals'][dep] = self.lookupcache[fn][dep] - if runtime: + if runtime and k in self.taskhash: data['runtaskdeps'] = self.runtaskdeps[k] data['runtaskhashes'] = {} for dep in data['runtaskdeps']: |