Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jedeoric committed Nov 16, 2023
1 parent 864e5a2 commit f4b8479
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tools/retrieveSoftwareOricOrg.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,10 @@ def manage_download(tsoftware, download_file, download_platform, download_label,
print(f"[download_file] Retrieve download file { download_file } to { tmpfolderRetrieveSoftware }")

while (RetrieveSoftwareInTmpFolder(download_file, tmpfolderRetrieveSoftware) == 1):
nb_curl_error = nb_curl_error + 1
print("Retry curl ... ")
nb_curl_error = nb_curl_error + 1
if nb_curl_error == 20:
print("Exitint furl")
exit()

extension = getFileExtension(download_file)
Expand Down Expand Up @@ -721,6 +723,14 @@ def manage_download(tsoftware, download_file, download_platform, download_label,
if tmpfolderRetrieveSoftware == "":
print(f"Error { tmpfolderRetrieveSoftware } is empty")
exit

while (RetrieveSoftwareInTmpFolder(download_1_file, tmpfolderRetrieveSoftware) == 1):
print(f"Retry curl (download_1_file) ... -> {nb_curl_error}")
nb_curl_error = nb_curl_error + 1
if nb_curl_error == 20:
print("Exiting curl")
exit()

RetrieveSoftwareInTmpFolder(download_1_file, tmpfolderRetrieveSoftware)

extension=download_1_file[-3:].lower()
Expand Down

0 comments on commit f4b8479

Please sign in to comment.