Message134502
| Author | Scott.Leerssen |
|---|---|
| Recipients | Scott.Leerssen, lars.gustaebel, srid |
| Date | 2011-04-26.21:20:13 |
| SpamBayes Score | 0.0008948459 |
| Marked as misclassified | No |
| Message-id | <1303852814.18.0.526279653558.issue10761@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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(). |
|
| History | |||
|---|---|---|---|
| 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 | |