Commit e9013dbe authored by sebmarchand's avatar sebmarchand Committed by Commit bot

Update the VS toolchain hash computation caching.

R=hans@chromium.org, scottmg@chromium.org
BUG=495204

Review-Url: https://codereview.chromium.org/2052533002
parent f10bcf32
......@@ -165,6 +165,10 @@ def CalculateHash(root, expected_hash):
digest.update(path_without_hash.lower())
with open(path, 'rb') as f:
digest.update(f.read())
# Save the timestamp file if the calculated hash is the expected one.
if digest.hexdigest() == expected_hash:
SaveTimestampsAndHash(root, digest.hexdigest())
return digest.hexdigest()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment