Re: [PATCH - stgit] Patch to allow import of compressed files
- From
- Sverre Rabbelier <alturin@gmail.com>
- Date
- Jun 10, 2008, 08:07 UTC
- Message-ID
- <bd6139dc0806100107y415a292eqe22af7a7b2215e65@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.1.10.0806092335420.17180@swallowtail>
On Tue, Jun 10, 2008 at 8:38 AM, Asheesh Laroia <asheesh@asheesh.org> wrote:
Show 8 quoted lines
> Peanut gallery question: Why not just always try these methods and catch > some format exception if they fail, proceeding to the next possible > decompressor (proceeding on to no decompressor)? > > That way if a file is called .GZ, it will still be handled properly; in > fact, all files would still be handled properly. And these formats leave > notes in the first few bytes of the file as to if they should be tried, so > it's not as if it would come at some performance cost.
How about adding in '.tar' decompression as well, -after- the '.gz' decompression? That way you can have .tar.gz's and still be fine.
-- Cheers, Sverre Rabbelier