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

Unified Diff: third_party/binutils/download.py

Issue 231793008: Also clear the stamp file if the download file or extracted directory goes missing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/binutils/download.py
diff --git a/third_party/binutils/download.py b/third_party/binutils/download.py
index 5baf7cf6b9813e4000b826e7a9308e6ee99e18ee..2891c822457e6c4d89d57ab272b316f28a54d011 100755
--- a/third_party/binutils/download.py
+++ b/third_party/binutils/download.py
@@ -64,7 +64,9 @@ def main(args):
stampfile = tarball + '.stamp'
if os.path.exists(stampfile):
- if checksum == ReadFile(stampfile):
+ if (os.path.exists(tarball) and
+ os.path.exists(outdir) and
+ checksum == ReadFile(stampfile)):
return 0
else:
os.unlink(stampfile)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698