mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
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
1 changed files with 9 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue