Merging files into tar.gz archives

2009-12-21 Thread Pulkit Agrawal
Hi, I am writing a script wherein I need to merge files into existing tar.gz archives. Currently, I am using tarfile module. I extract the tar.gz to a tempdir and copy the new file there and re-compress all the files back into a tar.gz. Is there a better way to do it? Thanks Pulkit (Sorry for t

Re: Python-list Digest, Vol 75, Issue 226

2009-12-21 Thread Pulkit Agrawal
Hi, I am writing a script wherein I need to merge files into existing tar.gz files. Currently, I am using tarfile module. I extract the tar.gz to a tempdir and copy the new file there and re-compress all the files back into a tar.gz. Is there a better way to do it? Thanks Pulkit -- http://mail.