Commit 45bc998d authored by 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.
parent 116ff7c4
...@@ -292,9 +292,15 @@ class Main: ...@@ -292,9 +292,15 @@ class Main:
try: try:
macostools.copy(fullname, os.path.join(destprefix, dest), 1) macostools.copy(fullname, os.path.join(destprefix, dest), 1)
except: #DBG except: #DBG
print 'cwd', os.getcwd() #DBG print '*** Copy failed mysteriously, try again'
print 'fsspec', macfs.FSSpec(fullname) #DBG print '*** cwd', os.getcwd() #DBG
raise 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: for d in todo:
if not self.rundir(d, destprefix, doit): if not self.rundir(d, destprefix, doit):
rv = 0 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