[oe-commits] [bitbake] 01/03: siggen: move reset() definition to base SignatureGenerator class

git at git.openembedded.org git at git.openembedded.org
Tue Sep 5 14:02:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository bitbake.

commit 13f52d38fdbcb84c2a0c46f85baa44b22d53fdc1
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Mon Sep 4 21:03:12 2017 +1200

    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 at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/siggen.py | 6 ++----
 1 file 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:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list