Allow the possibility of no compression for info files.
commite56c8638a8d872c85646fa27bdcb8b743f7c4236
authorRupert Swarbrick <rswarbrick@gmail.com>
Thu, 10 Jun 2010 10:35:46 +0000 (10 11:35 +0100)
committerShaun McCance <shaunm@gnome.org>
Wed, 15 Sep 2010 14:52:25 +0000 (15 10:52 -0400)
tree8cf8aefebc2ada26398465d5a01e6c373a74aad5
parentc302f289d165fd997c65afe7718d3e1f59973bc6
Allow the possibility of no compression for info files.

At the moment, the info parser uses YelpMagicDecompressor. If it
didn't recognize a stream as BZ2 or LZMA, the decompressor assumed it
was GZip. This didn't work if the file is uncompressed... Since GZip
decompression certainly won't work if the file is not GZip compressed,
this patch changes YelpMagicDecompressor to fall back to a
pass-through converter if it doesn't recognise the compression format
(which might mean the file is uncompressed!).
libyelp/yelp-magic-decompressor.c