We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 674a5bb commit fa6d618Copy full SHA for fa6d618
misc/bazel/internal/install.py
@@ -90,9 +90,11 @@ class RetryException(Exception):
90
91
attempts = 0
92
success = False
93
-while attempts < 3 and success is False:
+while attempts < 3 and not success:
94
+ attempts += 1
95
destdir.mkdir(parents=True, exist_ok=True)
96
subprocess.run([script, "--destdir", destdir], check=True)
97
+ success = True
98
99
if opts.zip_manifest:
100
ripunzip = runfiles.Rlocation(opts.ripunzip)
@@ -110,7 +112,6 @@ class RetryException(Exception):
110
112
success = ret.returncode == 0
111
113
if not success:
114
print(f"Failed to unzip {zip} to {dest}, retrying installation...")
- attempts += 1
115
rmdir(destdir)
116
break
117
0 commit comments