Mercurial > cpython-lru_cache-weakref
diff Mac/scripts/MkDistr.py @ 17002:f3fb05bfeeeb legacy-trunk
Re-try the file copy once if it fails. This works around an obscure and non-reproducibe bug in GUSI.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Tue, 06 Mar 2001 22:43:06 +0000 |
| parents | 57a4857430ff |
| children |
line wrap: on
line diff
--- a/Mac/scripts/MkDistr.py Tue Mar 06 22:42:12 2001 +0000 +++ b/Mac/scripts/MkDistr.py Tue Mar 06 22:43:06 2001 +0000 @@ -292,9 +292,15 @@ 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
