Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1216)

Unified Diff: tools/dartium/upload_steps.py

Issue 440233005: Added sha256 sums for build outputs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Take ricow's suggestions Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/bots/bot_utils.py ('k') | tools/signing_script.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dartium/upload_steps.py
diff --git a/tools/dartium/upload_steps.py b/tools/dartium/upload_steps.py
index 154acacdfeb44b80532e01a4bcc663aa9df13e04..3d54409b12ab7321c689b57eb1ba14c96563d060 100755
--- a/tools/dartium/upload_steps.py
+++ b/tools/dartium/upload_steps.py
@@ -197,18 +197,21 @@ def OldUploadFile(source, target):
return status
-def UploadFile(local_path, remote_path, create_md5sum=False):
+def UploadFile(local_path, remote_path, checksum_files=False):
# Copy it to the new unified gs://dart-archive bucket
gsutil = bot_utils.GSUtil()
gsutil.upload(local_path, remote_path, public=True)
- if create_md5sum:
+ if checksum_files:
# 'local_path' may have a different filename than 'remote_path'. So we need
# to make sure the *.md5sum file contains the correct name.
assert '/' in remote_path and not remote_path.endswith('/')
mangled_filename = remote_path[remote_path.rfind('/') + 1:]
- local_md5sum = bot_utils.CreateChecksumFile(local_path, mangled_filename)
+ local_md5sum = bot_utils.CreateMD5ChecksumFile(local_path,
+ mangled_filename)
gsutil.upload(local_md5sum, remote_path + '.md5sum', public=True)
-
+ local_sha256 = bot_utils.CreateSha256ChecksumFile(local_path,
+ mangled_filename)
+ gsutil.upload(local_sha256, remote_path + '.sha256sum', public=True)
def ExecuteCommand(cmd):
"""Execute a command in a subprocess.
« no previous file with comments | « tools/bots/bot_utils.py ('k') | tools/signing_script.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698