[issue8741] 2.7 regression in tarfile: IOError: link could not be created

2010-06-03 Thread Lars Gustäbel
Lars Gustäbel added the comment: I have just committed the fix. I hope that this code is now more robust. See r81667 (trunk) and r81670 (py3k). Thank you very much for your report! -- resolution: -> accepted stage: -> committed/rejected status: open -> closed versions: +Python 3.2

[issue8741] 2.7 regression in tarfile: IOError: link could not be created

2010-05-18 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Thanks - just a suggestion: it may be a good idea to add a test case for this makelink emulation code. Also, any thoughts on raising (a derived class of) TarError instead of IOError? -- ___ Python tracker

[issue8741] 2.7 regression in tarfile: IOError: link could not be created

2010-05-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: @senthil: Yes, this is a platform-specific problem. The code that is failing is in fact supposed to somehow "emulate" symlink and hardlink extraction on platforms that don't support these, e.g. Windows. What tarfile is trying to do here is to extract links as

[issue8741] 2.7 regression in tarfile: IOError: link could not be created

2010-05-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is a platform specific bug. It is happening only on windows. BTW, makelink should not have been called for this file, because it is not a link or symlink, but a regular file. -- nosy: +orsenthil ___ Python trac

[issue8741] 2.7 regression in tarfile: IOError: link could not be created

2010-05-18 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue8741] 2.7 regression in tarfile: IOError: link could not be created

2010-05-17 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Aside: why is the original exception ignored, and instead a generic IOError is thrown? Why not use one of the exceptions inheriting `TarError`, so that application code can reliably catch these errors? -- ___ P

[issue8741] 2.7 regression in tarfile: IOError: link could not be created

2010-05-17 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: The actual exception caught (before it was ignored and a generic IOError was thrown) was this: File "C:\Python27\lib\tarfile.py", line 2168, in _extract_member self.makelink(tarinfo, targetpath) File "C:\Python27\lib\tarfile.py", line 2258, in make

[issue8741] 2.7 regression in tarfile: IOError: link could not be created

2010-05-17 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : Repro steps: Download http://appropriatesoftware.net/provide/docs/eternity-0.13.tar.gz (via 'eternity' module in PyPI) and look at the following command line session: C:\Temp\tfbug>python27 -c "import tarfile as T; T.open('eternity-0.13.tar.gz').extrac