summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/codeparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py
index 3f8ac1d5f6..ac995a6a1d 100644
--- a/bitbake/lib/bb/codeparser.py
+++ b/bitbake/lib/bb/codeparser.py
@@ -33,7 +33,7 @@ from bb.cache import MultiProcessCache
33logger = logging.getLogger('BitBake.CodeParser') 33logger = logging.getLogger('BitBake.CodeParser')
34 34
35def bbhash(s): 35def bbhash(s):
36 return hashlib.md5(s.encode("utf-8")).hexdigest() 36 return hashlib.sha256(s.encode("utf-8")).hexdigest()
37 37
38def check_indent(codestr): 38def check_indent(codestr):
39 """If the code is indented, add a top level piece of code to 'remove' the indentation""" 39 """If the code is indented, add a top level piece of code to 'remove' the indentation"""
@@ -140,7 +140,7 @@ class CodeParserCache(MultiProcessCache):
140 # so that an existing cache gets invalidated. Additionally you'll need 140 # so that an existing cache gets invalidated. Additionally you'll need
141 # to increment __cache_version__ in cache.py in order to ensure that old 141 # to increment __cache_version__ in cache.py in order to ensure that old
142 # recipe caches don't trigger "Taskhash mismatch" errors. 142 # recipe caches don't trigger "Taskhash mismatch" errors.
143 CACHE_VERSION = 10 143 CACHE_VERSION = 11
144 144
145 def __init__(self): 145 def __init__(self):
146 MultiProcessCache.__init__(self) 146 MultiProcessCache.__init__(self)