From 1f609b6a6c9d0f0b53d8a3e07eb6e087561c2c15 Mon Sep 17 00:00:00 2001 From: jede Date: Fri, 17 Nov 2023 21:30:04 +0100 Subject: [PATCH] fix --- tools/retrieveSoftwareOricOrg.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/retrieveSoftwareOricOrg.py b/tools/retrieveSoftwareOricOrg.py index 7c09cd7..11002d2 100644 --- a/tools/retrieveSoftwareOricOrg.py +++ b/tools/retrieveSoftwareOricOrg.py @@ -300,7 +300,7 @@ 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" ) @@ -308,6 +308,8 @@ def BuildDsk(tsoftware, platform_software, letter, destpath, destetc, filenameta 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 @@ -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