Re-try the file copy once if it fails. This works around an obscure and non-reproducibe bug in GUSI.
This commit is contained in:
parent
cbe7b1c93e
commit
36bcf9b94f
|
@ -292,9 +292,15 @@ class Main:
|
|||
try:
|
||||
macostools.copy(fullname, os.path.join(destprefix, dest), 1)
|
||||
except: #DBG
|
||||
print 'cwd', os.getcwd() #DBG
|
||||
print 'fsspec', macfs.FSSpec(fullname) #DBG
|
||||
raise
|
||||
print '*** Copy failed mysteriously, try again'
|
||||
print '*** cwd', os.getcwd() #DBG
|
||||
print '*** fsspec', macfs.FSSpec(fullname) #DBG
|
||||
# Get rid of open files
|
||||
try:
|
||||
i = 1 / 0
|
||||
except:
|
||||
pass
|
||||
macostools.copy(fullname, os.path.join(destprefix, dest), 1)
|
||||
for d in todo:
|
||||
if not self.rundir(d, destprefix, doit):
|
||||
rv = 0
|
||||
|
|
Loading…
Reference in New Issue