mac packaging: exit loop cleanly on hdi detach success
parent
2ac43eccf3
commit
ce536fd5f3
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue