This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2006年02月08日 14:13 by chris86, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (6) | |||
|---|---|---|---|
| msg27457 - (view) | Author: Chris86 (chris86) | Date: 2006年02月08日 14:13 | |
Hi!
I want to create a bz2 compressed tar file.
Here is my code:
full="/home/test/test.sql"
tar = tarfile.open("test.tar.bz2", "w:bz2")
tarinfo = tar.gettarinfo(full,"blubb.sql")
tar.addfile(tarinfo,file(full))
tar.close()
i think this should work, but the sql file is corrupt:
- the created sql file in the compressed tar has only
4745 Lines, the original file has 4753
Regards,
Chris
|
|||
| msg27458 - (view) | Author: Chris86 (chris86) | Date: 2006年02月08日 14:15 | |
Logged In: YES user_id=1133569 I'm using Python 2.4.2 (#2, Nov 20 2005, 17:04:48) [GCC 4.0.3 20051111 (prerelease) (Debian 4.0.2-4)] on linux2 |
|||
| msg27459 - (view) | Author: Chris86 (chris86) | Date: 2006年02月08日 14:17 | |
Logged In: YES user_id=1133569 same error with Python 2.3.5 (#2, Aug 30 2005, 15:50:26) [GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)] on linux2 |
|||
| msg27460 - (view) | Author: Lars Gustäbel (lars.gustaebel) * (Python committer) | Date: 2006年02月08日 15:13 | |
Logged In: YES user_id=642936 Just to identify whether this is a tarfile or bz2 module related issue: - Do you have the same problem without compression or with gzip compression? - Have you tried compressing your sql file directly with the bz2 module? |
|||
| msg27461 - (view) | Author: Neal Norwitz (nnorwitz) * (Python committer) | Date: 2006年02月12日 06:21 | |
Logged In: YES user_id=33168 Chris can you attach your sql file (or a small test case) so we can reproduce the problem? |
|||
| msg27462 - (view) | Author: SourceForge Robot (sf-robot) | Date: 2006年04月02日 03:23 | |
Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:15 | admin | set | github: 42876 |
| 2006年02月08日 14:13:54 | chris86 | create | |