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:
Jack Jansen 2001-03-06 22:43:06 +00:00
parent cbe7b1c93e
commit 36bcf9b94f
1 changed files with 9 additions and 3 deletions

View File

@ -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