diff options
Diffstat (limited to 'native_client_sdk')
-rw-r--r-- | native_client_sdk/src/AUTHORS | 1 | ||||
-rw-r--r-- | native_client_sdk/src/build_tools/sdk_tools/command/update.py | 2 |
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) |