[issue4750] tarfile keeps excessive dir structure in compressed files

2009-10-29 Thread Lars Gustäbel
Lars Gustäbel added the comment: I fixed it in r75935 and r75937. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ __

[issue4750] tarfile keeps excessive dir structure in compressed files

2009-10-29 Thread Lars Gustäbel
Lars Gustäbel added the comment: The latest patch (4750.gzip.basename.fix.diff) cannot be used the way it is. The problem is that it uses the name attribute to store the basename with the .gz extension stripped. This breaks compatibility. -- ___ Pyth

[issue4750] tarfile keeps excessive dir structure in compressed files

2009-10-28 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- components: -Distutils ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue4750] tarfile keeps excessive dir structure in compressed files

2009-10-27 Thread Tarek Ziadé
Tarek Ziadé added the comment: Lars, is this still accurate ? -- nosy: +tarek versions: +Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker ___ ___

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-30 Thread Martin v. Löwis
Martin v. Löwis added the comment: No further bug fixes are accepted for 2.5 (unless they fix security problems), so I reject the 2.5 patch. ___ Python tracker ___ ___

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-30 Thread Martin v. Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file12452/tarfile.directory.fix.diff ___ Python tracker ___ ___ Python-bugs-l

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-29 Thread anatoly techtonik
anatoly techtonik added the comment: I attach for Python 2.5 as well. People will use gzip module for a long time to build packages and patch will help them to get correct archives. Added file: http://bugs.python.org/file12490/python25.issue4750.diff ___ Pyt

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-29 Thread anatoly techtonik
anatoly techtonik added the comment: I attach patch for Python 2.6 gzip I clarified the meaning of self.name to be the basename corresponding to FNAME field in GZIP file header. There is a trace of deprecated gzip.filename API - I haven't found any references to it in documentation, so I remove

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-29 Thread anatoly techtonik
anatoly techtonik added the comment: For MSYS gzip added a bugreport here: https://sourceforge.net/tracker2/index.php?func=detail&aid=2474481&group_id=2435&atid=102435 ___ Python tracker

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-28 Thread anatoly techtonik
anatoly techtonik added the comment: 7zip can decompress both, but it still creates "dist/" directory when decompressing file that is made with Python. I've noticed this bug with extra path component is actual with "tar" + "gzip" under windows. If they are executed separately and windows path w

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-27 Thread Lars Gustäbel
Lars Gustäbel added the comment: Anatoly is right, the gzip file format specification (RFC 1952) says that the FNAME header field must be the basename of the original filename. So, this behaviour is not tarfile's fault but that of the gzip module and should be fixed there. 7zip can still decompr

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-27 Thread Martin v. Löwis
Martin v. Löwis added the comment: Lars, what do you think? -- assignee: -> lars.gustaebel nosy: +lars.gustaebel, loewis ___ Python tracker ___ _

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-26 Thread anatoly techtonik
Changes by anatoly techtonik : -- keywords: +patch Added file: http://bugs.python.org/file12452/tarfile.directory.fix.diff ___ Python tracker ___ _

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-26 Thread anatoly techtonik
New submission from anatoly techtonik : When tarfile is directed to create tar.gz compressed archive file in a path different from current, it saves full path information in .gz header where only filename is required. This causes problems with decompression utilities, such as 7zip. The testsuite