mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Fix hang for targets without ripunzip.
This commit is contained in:
@@ -90,9 +90,11 @@ class RetryException(Exception):
|
||||
|
||||
attempts = 0
|
||||
success = False
|
||||
while attempts < 3 and success is False:
|
||||
while attempts < 3 and not success:
|
||||
attempts += 1
|
||||
destdir.mkdir(parents=True, exist_ok=True)
|
||||
subprocess.run([script, "--destdir", destdir], check=True)
|
||||
success = True
|
||||
|
||||
if opts.zip_manifest:
|
||||
ripunzip = runfiles.Rlocation(opts.ripunzip)
|
||||
@@ -110,7 +112,6 @@ while attempts < 3 and success is False:
|
||||
success = ret.returncode == 0
|
||||
if not success:
|
||||
print(f"Failed to unzip {zip} to {dest}, retrying installation...")
|
||||
attempts += 1
|
||||
rmdir(destdir)
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user