Message134502
I just hit the same issue. This seems to work:
Modified:Lib/tarfile.py
===================================================================
---Lib/tarfile.py 2011-04-26 20:36:33 UTC (rev 49502)
+++Lib/tarfile.py 2011-04-26 21:01:24 UTC (rev 49503)
@@ -2239,6 +2239,8 @@
if hasattr(os, "symlink") and hasattr(os, "link"):
# For systems that support symbolic and hard links.
if tarinfo.issym():
+ if os.path.exists(targetpath):
+ os.unlink(targetpath)
os.symlink(tarinfo.linkname, targetpath)
else:
# See extract(). |
|
Date |
User |
Action |
Args |
2011-04-26 21:20:14 | Scott.Leerssen | set | recipients:
+ Scott.Leerssen, lars.gustaebel, srid |
2011-04-26 21:20:14 | Scott.Leerssen | set | messageid: <1303852814.18.0.526279653558.issue10761@psf.upfronthosting.co.za> |
2011-04-26 21:20:13 | Scott.Leerssen | link | issue10761 messages |
2011-04-26 21:20:13 | Scott.Leerssen | create | |
|