| |
@@ -548,7 +548,7 @@
|
| |
if dep not in deps_to_filter
|
| |
}
|
| |
property_json = json.dumps(OrderedDict(sorted(mmd_formatted_buildrequires.items())))
|
| |
- return hashlib.sha1(property_json.encode("utf-8")).hexdigest()
|
| |
+ return hashlib.sha1(property_json.encode("utf-8"), usedforsecurity=False).hexdigest()
|
| |
|
| |
@staticmethod
|
| |
def calculate_runtime_context(mmd_dependencies):
|
| |
@@ -567,7 +567,7 @@
|
| |
# Sort the streams for each module name and also sort the module names.
|
| |
mmd_requires = {dep: sorted(list(streams)) for dep, streams in mmd_requires.items()}
|
| |
property_json = json.dumps(OrderedDict(sorted(mmd_requires.items())))
|
| |
- return hashlib.sha1(property_json.encode("utf-8")).hexdigest()
|
| |
+ return hashlib.sha1(property_json.encode("utf-8"), usedforsecurity=False).hexdigest()
|
| |
|
| |
@staticmethod
|
| |
def calculate_module_context(build_context, runtime_context):
|
| |
@@ -581,7 +581,7 @@
|
| |
:return: module context hash
|
| |
"""
|
| |
combined_hashes = "{0}:{1}".format(build_context, runtime_context)
|
| |
- return hashlib.sha1(combined_hashes.encode("utf-8")).hexdigest()[:8]
|
| |
+ return hashlib.sha1(combined_hashes.encode("utf-8"), usedforsecurity=False).hexdigest()[:8]
|
| |
|
| |
def siblings(self, db_session):
|
| |
query = db_session.query(ModuleBuild).filter(
|
| |