mac packaging: exit loop cleanly on hdi detach success
parent
96b8a9ec52
commit
612c91ade9
|
|
@ -1954,6 +1954,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