mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
30bfec03e2
commit
d955d6a8f5
@@ -34,7 +34,9 @@ class SignatureGenerator(object):
|
|||||||
name = "noop"
|
name = "noop"
|
||||||
|
|
||||||
def __init__(self, data):
|
def __init__(self, data):
|
||||||
return
|
self.taskhash = {}
|
||||||
|
self.runtaskdeps = {}
|
||||||
|
self.file_checksum_values = {}
|
||||||
|
|
||||||
def finalise(self, fn, d, varient):
|
def finalise(self, fn, d, varient):
|
||||||
return
|
return
|
||||||
@@ -42,7 +44,7 @@ class SignatureGenerator(object):
|
|||||||
def get_taskhash(self, fn, task, deps, dataCache):
|
def get_taskhash(self, fn, task, deps, dataCache):
|
||||||
return "0"
|
return "0"
|
||||||
|
|
||||||
def set_taskdata(self, hashes, deps):
|
def set_taskdata(self, hashes, deps, checksum):
|
||||||
return
|
return
|
||||||
|
|
||||||
def stampfile(self, stampbase, file_name, taskname, extrainfo):
|
def stampfile(self, stampbase, file_name, taskname, extrainfo):
|
||||||
|
|||||||
Reference in New Issue
Block a user