summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-09-04 14:18:19 +1200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2017-09-05 09:40:36 +1200
commitf897a316aacbdbf1ba4756e89f5d35543f3b625e (patch)
tree95f3ed8048476d150e62f6b2a59b831b40f66816 /lib
parent56d935c48b94ddb12ad251254da235f2281961b8 (diff)
downloadbitbake-contrib-paule/sigfixes.tar.gz
bitbake-contrib-paule/sigfixes.tar.bz2
bitbake-contrib-paule/sigfixes.zip
siggen: move reset() definition to base SignatureGenerator classpaule/sigfixes
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>
Diffstat (limited to 'lib')
-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 7521a3a903..5ef82d7be0 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: