Merge pull request #6896 from malept/fix-checksum-format

The checksum file needs to indicate that the files should be opened in binary mode
This commit is contained in:
Cheng Zhao 2016-08-24 16:15:22 +09:00 committed by GitHub
commit dc73a5afea

View file

@ -247,7 +247,7 @@ def upload_sha256_checksum(version, file_path):
filename = os.path.basename(file_path)
with open(checksum_path, 'w') as checksum:
checksum.write('{} {}'.format(sha256.hexdigest(), filename))
checksum.write('{} *{}'.format(sha256.hexdigest(), filename))
s3put(bucket, access_key, secret_key, os.path.dirname(checksum_path),
'atom-shell/tmp/{0}'.format(version), [checksum_path])