mac packaging: exit loop cleanly on hdi detach success

master
Beq 2024-07-27 08:13:14 +01:00
parent 2ac43eccf3
commit ce536fd5f3
1 changed files with 1 additions and 0 deletions

View File

@ -1913,6 +1913,7 @@ class Darwin_x86_64_Manifest(ViewerManifest):
for tries in range(10):
try:
self.run_command(['hdiutil', 'detach', '-force', devfile])
break # Exit loop if detach worked
except ManifestError as err:
print(f"detach failed on attempt {tries}")
time.sleep(1)