mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Make get_toolchain_if_necessary.py work on Mac again
R=thakis@chromium.org, sebmarchand@chromium.org BUG=495204,585829 Review URL: https://codereview.chromium.org/1689723002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298720 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@@ -130,7 +130,7 @@ def CalculateHash(root, expected_hash):
|
||||
path_without_hash = str(path).replace('/', '\\')
|
||||
if expected_hash:
|
||||
path_without_hash = path_without_hash.replace(
|
||||
os.path.join(root, expected_hash), root)
|
||||
os.path.join(root, expected_hash).replace('/', '\\'), root)
|
||||
digest.update(path_without_hash)
|
||||
with open(path, 'rb') as f:
|
||||
digest.update(f.read())
|
||||
|
||||
Reference in New Issue
Block a user