summaryrefslogtreecommitdiffstats
path: root/native_client_sdk
diff options
context:
space:
mode:
authortechtonik <techtonik@gmail.com>2015-10-22 12:09:14 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-22 19:09:56 +0000
commit82ea27a94a575ef1db382e70c05d38797c22ad6d (patch)
treee2ccec8926981e1b3faf543cce980aa9a2954533 /native_client_sdk
parent733f2e976c8b2381fa12dace9090345a094789ca (diff)
downloadchromium_src-82ea27a94a575ef1db382e70c05d38797c22ad6d.zip
chromium_src-82ea27a94a575ef1db382e70c05d38797c22ad6d.tar.gz
chromium_src-82ea27a94a575ef1db382e70c05d38797c22ad6d.tar.bz2
Do not fail checksum check before download
BUG= Review URL: https://codereview.chromium.org/1413663005 Cr-Commit-Position: refs/heads/master@{#355597}
Diffstat (limited to 'native_client_sdk')
-rw-r--r--native_client_sdk/src/AUTHORS1
-rw-r--r--native_client_sdk/src/build_tools/sdk_tools/command/update.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/native_client_sdk/src/AUTHORS b/native_client_sdk/src/AUTHORS
index ca2a76f..31be971 100644
--- a/native_client_sdk/src/AUTHORS
+++ b/native_client_sdk/src/AUTHORS
@@ -10,3 +10,4 @@ Eduardo Lima (Etrunko) <eblima@gmail.com>
Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
Matthew Turk <matthewturk@gmail.com>
Soeren Balko <soeren@zfaas.com>
+anatoly techtonik <techtonik@gmail.com>
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 e49765bb..5ad5b82 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)