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

Unified Diff: native_client_sdk/src/build_tools/sdk_tools/command/update.py

Issue 1413663005: Do not fail checksum check before download (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding myself to chromium/AUTHORS Created 5 years, 2 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 | « native_client_sdk/src/AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/build_tools/sdk_tools/command/update.py
diff --git a/native_client_sdk/src/build_tools/sdk_tools/command/update.py b/native_client_sdk/src/build_tools/sdk_tools/command/update.py
index e49765bb2de84f724bee00d717d5ac2eacd45f59..5ad5b825f2b72ea6563c088754a7de576e09e481 100644
--- a/native_client_sdk/src/build_tools/sdk_tools/command/update.py
+++ b/native_client_sdk/src/build_tools/sdk_tools/command/update.py
@@ -74,7 +74,7 @@ class RealUpdateDelegate(UpdateDelegate):
archive.size, filename))
return False
sha1_hash = hashlib.sha1()
- with open(filename) as f:
+ with open(filename, 'rb') as f:
sha1_hash.update(f.read())
if sha1_hash.hexdigest() != archive.GetChecksum():
logging.info('File hash does not match: %s.' % filename)
« no previous file with comments | « native_client_sdk/src/AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698