aboutsummaryrefslogtreecommitdiff
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 14:58:48 +0100
commit13f52d38fdbcb84c2a0c46f85baa44b22d53fdc1 (patch)
tree6f1b6e15bcb29a3d8d7ae950a98f1e594d3c85bf
parent17aa1ef8f0a00dd3456aac199e558a2f96bf7ad9 (diff)
downloadbitbake-13f52d38fdbcb84c2a0c46f85baa44b22d53fdc1.zip
bitbake-13f52d38fdbcb84c2a0c46f85baa44b22d53fdc1.tar.gz
bitbake-13f52d38fdbcb84c2a0c46f85baa44b22d53fdc1.tar.bz2
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. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/siggen.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py
index 7521a3a..5ef82d7 100644
--- a/lib/bb/siggen.py
+++ b/lib/bb/siggen.py
@@ -70,7 +70,8 @@ class SignatureGenerator(object):
self.runtaskdeps, self.taskhash, self.file_checksum_values, self.taints, self.basehash = data
def reset(self, data):
- return
+ self.__init__(data)
+
class SignatureGeneratorBasic(SignatureGenerator):
"""
@@ -97,9 +98,6 @@ class SignatureGeneratorBasic(SignatureGenerator):
else:
self.checksum_cache = None
- def reset(self, data):
- self.__init__(data)
-
def init_rundepcheck(self, data):
self.taskwhitelist = data.getVar("BB_HASHTASK_WHITELIST") or None
if self.taskwhitelist: