summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/siggen.py
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2014-01-20 19:44:53 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-28 00:52:57 +0000
commitd955d6a8f52edcffe3c81af7b01f2e3843dbe432 (patch)
treeb2c32dc93721bf2ca3aef06fbfb803677d732edd /bitbake/lib/bb/siggen.py
parent30bfec03e2c84e74336760c396df1519affe3669 (diff)
downloadpoky-d955d6a8f52edcffe3c81af7b01f2e3843dbe432.tar.gz
bitbake: siggen.py: fix the SignatureGenerator()
If we set: BB_SIGNATURE_HANDLER = "noop" Then we would get the following errors: [snip] File "runqueue.py", line 876, in RunQueue._start_worker(fakeroot=False, rqexec=None): "fakerootnoenv" : self.rqdata.dataCache.fakerootnoenv, > "hashes" : bb.parse.siggen.taskhash, "hash_deps" : bb.parse.siggen.runtaskdeps, AttributeError: 'SignatureGenerator' object has no attribute 'taskhash' [snip] This patch fixes the problem. [YOCTO #5741] (Bitbake rev: 2bfcb751891cf3b4050e996b3c8e28678c3a8bf4) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/siggen.py')
-rw-r--r--bitbake/lib/bb/siggen.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 9db29a2ecf..a54357a3f3 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -34,7 +34,9 @@ class SignatureGenerator(object):
34 name = "noop" 34 name = "noop"
35 35
36 def __init__(self, data): 36 def __init__(self, data):
37 return 37 self.taskhash = {}
38 self.runtaskdeps = {}
39 self.file_checksum_values = {}
38 40
39 def finalise(self, fn, d, varient): 41 def finalise(self, fn, d, varient):
40 return 42 return
@@ -42,7 +44,7 @@ class SignatureGenerator(object):
42 def get_taskhash(self, fn, task, deps, dataCache): 44 def get_taskhash(self, fn, task, deps, dataCache):
43 return "0" 45 return "0"
44 46
45 def set_taskdata(self, hashes, deps): 47 def set_taskdata(self, hashes, deps, checksum):
46 return 48 return
47 49
48 def stampfile(self, stampbase, file_name, taskname, extrainfo): 50 def stampfile(self, stampbase, file_name, taskname, extrainfo):