Message120228
| Author |
magcius |
| Recipients |
lars.gustaebel, magcius |
| Date |
2010年11月02日.14:59:27 |
| SpamBayes Score |
1.4103621e-07 |
| Marked as misclassified |
No |
| Message-id |
<1288709970.4.0.0407902568175.issue10292@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Oh man, attaching the wrong diff and getting the diff wrong.
The issue I found with Python 2.7:
when creating a simple link in tar:
$ mkdir tar_test
$ cd tar_test
$ touch one
$ ln -s one two
$ cd ..
$ tar czf tar_test.tgz tar_test
It seems obvious that there would be a relative link in the tar file:
-rwxrwxrwx jstpierre/me 2010年11月02日 10:57:15 tar_test/two -> one
Unfortunately, as far as I can tell, tarfile treats this as an absolute path, and fails when extracting:
>>> tf.extractfile("tar_test/two")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/tarfile.py", line 2122, in extractfile
tarinfo))
File "/usr/lib/python2.6/tarfile.py", line 2105, in extractfile
if tarinfo.isreg():
AttributeError: 'NoneType' object has no attribute 'isreg'
I was trying to fix that. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年11月02日 14:59:30 | magcius | set | recipients:
+ magcius, lars.gustaebel |
| 2010年11月02日 14:59:30 | magcius | set | messageid: <1288709970.4.0.0407902568175.issue10292@psf.upfronthosting.co.za> |
| 2010年11月02日 14:59:28 | magcius | link | issue10292 messages |
| 2010年11月02日 14:59:27 | magcius | create |
|