Converters don't nest - can't handle .yml.gz
Closed this issue · 4 comments
robert-ancell commented
libxmlb assumes the result of a gzipped file is XML, instead of checking the MIME type of the decompressed data. This means that .yml.gz files can't be handled by the converter.
hughsie commented
Got a patch handy? I'm just on PTO. Thanks.
robert-ancell commented
I will attempt to write one but haven't started yet. I figure the best thing is to re-check the mime type after a gzip decode.
robert-ancell commented
hughsie commented
Okay, I've had a go at this too; I took what you did and rewrote it -- there is a proper context object we can extend in the future if we need to now. I've also pushed a wip/hughsie/XbBuilderSource-adapter branch in gnome-software which uses this new API -- feedback very welcome.