Bugs item #1336623, was opened at 2005-10-24 17:47
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1336623&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: A. Murat EREN (meren)
Assigned to: Nobody/Anonymous (nobody)
Summary: tarfile can't extract some tar archives..

Initial Comment:
Here is a small demo to reproduce the same problem:


-----------------8<-----------------8<-----------------8<-----------------8<---
[EMAIL PROTECTED] /home/meren $ wget
ftp://ftp.sleepycat.com/releases/db.1.85.tar.gz
(...)
100%[============>] 270,953       17.13K/s    ETA 00:00

20:21:09 (15.25 KB/s) - `db.1.85.tar.gz' saved [270,953]

[EMAIL PROTECTED] /home/meren $ file db.1.85.tar.gz
db.1.85.tar.gz: gzip compressed data, from Unix
[EMAIL PROTECTED] /home/meren $ python
>>> tar = tarfile.open("db.1.85.tar.gz", "r:gz")
>>> for tarinfo in tar:
...     print tarinfo.name
...
db.1.85
db.1.85/btree
db.1.85/btree/Makefile.inc
db.1.85/btree/bt_close.c
db.1.85/btree/bt_conv.c
db.1.85/btree/bt_debug.c
db.1.85/btree/bt_delete.c
db.1.85/btree/btree.h
db.1.85/btree/bt_get.c
db.1.85/btree/bt_open.c
(...) 
>>> for tarinfo in tar:
...     tar.extract(tarinfo)
...
>>>  Ctrl + D
[EMAIL PROTECTED] /home/meren $ ls db*
db.1.85
db.1.85.tar.gz
[EMAIL PROTECTED] /home/meren $ file db.1.85
db.1.85: empty
[EMAIL PROTECTED] /home/meren $ cat db.1.85
[EMAIL PROTECTED] /home/meren $ 
----------------->8----------------->8----------------->8----------------->8---

Also this file is extracting with the same result too:
ftp://ftp.linux.org.tr/pub/mirrors/gentoo/distfiles/ncompress-4.2.4.tar.gz

This thing is very rarely happening, but it is
happening. Also, I could extract these archives
properly via the native 'tar' binary..


Thanks in advance,
Ciao.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1336623&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to