Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jedeoric committed Nov 17, 2023
1 parent a1a3e62 commit 1f609b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/retrieveSoftwareOricOrg.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,16 @@ def BuildDsk(tsoftware, platform_software, letter, destpath, destetc, filenameta
date_software = tsoftware["date_software"]
programmer_software = tsoftware["programmer_software"]
junk_software = tsoftware["junk_software"]
nb_curl_error = 0

CreateTargetFolder(destpath, destetc,letter)
print("[DSK]Copying dsk : " + tmpfolderRetrieveSoftware + tail + " into :"+destpath + "/"+ letter +"/"+filenametap8bytesLength+".dsk" )
copyfile(tmpfolderRetrieveSoftware+tail,destpath+ "/" +letter+"/"+ filenametap8bytesLength+".dsk" )
os.remove(tmpfolderRetrieveSoftware + tail)
if not os.path.exists(destetc + "/"+ letter):
os.mkdir(destetc+"/" + letter)

nb_curl_error = 0

while (buildMdFile(tsoftware, filenametap8bytesLength, destpath, letter, platform_software) == 1):
print(f"Retry curl buildMdFile ... { nb_curl_error }")
nb_curl_error = nb_curl_error + 1
Expand Down Expand Up @@ -340,6 +342,8 @@ def BuildTape(tsoftware, tmpfolderRetrieveSoftware, tail, dest, letter,filenamet
os.mkdir(destetc + "/" + letter)
print("Writing in db file rom id : ", str(rombasic11))

nb_curl_error = 0

while (buildMdFile(tsoftware, filenametap8bytesLength, dest, letter, download_platform_software) == 1):
print(f"Retry curl buildMdFile ... { nb_curl_error }")
nb_curl_error = nb_curl_error + 1
Expand Down

0 comments on commit 1f609b6

Please sign in to comment.