Re: [PATCH - stgit] Patch to allow import of compressed files
- From
- Clark Williams <clark.williams@gmail.com>
- Date
- Jun 10, 2008, 13:57 UTC
- Message-ID
- <484E8833.9030302@gmail.com>
- In-Reply-To
- <alpine.DEB.1.10.0806092335420.17180@swallowtail>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Asheesh Laroia wrote:
Show 9 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.
Interesting thought. Do all the decompressors throw an error if the input format isn't recognized?
Clark -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkhOiDMACgkQqA4JVb61b9fixACfZLtxY20tXyZA5oLHTBSm5JPj ApQAnRsb6RkA2YKB5UXhXiEezMm1j1ZS =Y7ZK -----END PGP SIGNATURE-----