diff options
author | bradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-07 00:11:04 +0000 |
---|---|---|
committer | bradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-07 00:11:04 +0000 |
commit | 31e439b45cbb42352d2d9a21cc3f19cf736981e8 (patch) | |
tree | 7a7f6aa54d0a8baf4364b0523e35f6bd8cded6c8 /build | |
parent | 7b5efd93112a03d51bd175d83ef31fc051305b60 (diff) | |
download | chromium_src-31e439b45cbb42352d2d9a21cc3f19cf736981e8.zip chromium_src-31e439b45cbb42352d2d9a21cc3f19cf736981e8.tar.gz chromium_src-31e439b45cbb42352d2d9a21cc3f19cf736981e8.tar.bz2 |
Fixing IRT download script so it works on windows (or fails after 5 tries).
Retrying nacl deps roll.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/6958001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84528 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/download_nacl_irt.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/download_nacl_irt.py b/build/download_nacl_irt.py index 0f6ead4..a799b8e 100644 --- a/build/download_nacl_irt.py +++ b/build/download_nacl_irt.py @@ -72,12 +72,15 @@ def RenameWithRetry(old_path, new_path): if sys.platform in ('win32', 'cygwin'): for i in range(5): try: + if os.path.exists(new_path): + os.remove(new_path) os.rename(old_path, new_path) - break + return except Exception, exn: sys.stdout.write('Rename failed with %r. Retrying...\n' % str(exn)) sys.stdout.flush() time.sleep(1) + raise Exception('Unabled to rename irt file') else: os.rename(old_path, new_path) |