Kaydet (Commit) 36bcf9b9 authored tarafından Jack Jansen's avatar Jack Jansen

Re-try the file copy once if it fails. This works around an obscure and…

Re-try the file copy once if it fails. This works around an obscure and non-reproducibe bug in GUSI.
üst cbe7b1c9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment