Commit c3205f21 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

hFix/readability

See merge request !4
parents 6b59491b fd5114d1
......@@ -241,12 +241,17 @@ class Signature:
'token': ''.join([choice(ascii_lowercase) for _ in range(128)])
}
try:
if shacache.upload(path=path,
metadata_dict=metadata_dict):
self.log('Uploaded %s to cache (using %s key).', path, shacache.directory_key)
if shacache.upload(path=sha256path,
metadata_dict=metadata_dict, is_sha256file=True):
self.log('Uploaded %s to cache (using %s key).', sha256path, shacache.directory_key)
sha512sum = shacache.upload(path=path, metadata_dict=metadata_dict)
if sha512sum:
self.log(
'Uploaded %s to cache (using %s key) with SHA512 %s.', path,
shacache.directory_key, sha512sum)
sha512sum_path = shacache.upload(
path=sha256path, metadata_dict=metadata_dict, is_sha256file=True)
if sha512sum_path:
self.log(
'Uploaded %s to cache (using %s key) with SHA512 %s.', sha256path,
shacache.directory_key, sha512sum_path)
else:
self.log('Fail to upload sha256file file to cache.')
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment