summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-09-04 21:03:12 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-05 15:00:49 +0100
commitf16cab3e74712d0943d861949b9b439f97efdf1f (patch)
tree047c9519a53c80620f26c6fb165c8cd1cdf66500 /bitbake
parent749513169f9e04835e8429b8e5a96ba6aefc7247 (diff)
downloadpoky-f16cab3e74712d0943d861949b9b439f97efdf1f.tar.gz
bitbake: siggen: move reset() definition to base SignatureGenerator class
If we're implementing reset() in SignatureGenerator at all (and we need to for a basic non-OE BitBake setup where that is the default signature generator), then we need it to be clearing out the internal values properly. (Bitbake rev: 13f52d38fdbcb84c2a0c46f85baa44b22d53fdc1) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/siggen.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 7521a3a903..5ef82d7be0 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -70,7 +70,8 @@ class SignatureGenerator(object):
70 self.runtaskdeps, self.taskhash, self.file_checksum_values, self.taints, self.basehash = data 70 self.runtaskdeps, self.taskhash, self.file_checksum_values, self.taints, self.basehash = data
71 71
72 def reset(self, data): 72 def reset(self, data):
73 return 73 self.__init__(data)
74
74 75
75class SignatureGeneratorBasic(SignatureGenerator): 76class SignatureGeneratorBasic(SignatureGenerator):
76 """ 77 """
@@ -97,9 +98,6 @@ class SignatureGeneratorBasic(SignatureGenerator):
97 else: 98 else:
98 self.checksum_cache = None 99 self.checksum_cache = None
99 100
100 def reset(self, data):
101 self.__init__(data)
102
103 def init_rundepcheck(self, data): 101 def init_rundepcheck(self, data):
104 self.taskwhitelist = data.getVar("BB_HASHTASK_WHITELIST") or None 102 self.taskwhitelist = data.getVar("BB_HASHTASK_WHITELIST") or None
105 if self.taskwhitelist: 103 if self.taskwhitelist: