Re: How to unpack a .tgz archive in a .zip file?

Quentin Schulz

Hi Michael,

On January 11, 2022 11:38:06 AM GMT+01:00, Michael Opdenacker <michael.opdenacker@...> wrote:

I'm working on adding the wiki guidelines for dealing with pre-compiled
into the main documentation.

I'm trying to test the example recipe, but the latest pre-compiled
versions of are now available in,
which actually contains a .tgz file!

I know that's absurd, but how would you handle this case? Through a
custom "do_unpack" task in the recipe?
IMO that makes it unsuitable for the docs as we strive to have "simple" examples and having some custom unpack task seems a bit too much to me. Anyway, just my 2ยข and I don't have any other prebuilt lib to suggest as replacement right now.

Back to the topic:
I think you could have an :append for do_unpack and probably call oe_unpack ( on this specific file (after it's been unzipped), or even call unpack_file from the OE libs directly ( like oe_unpack is doing. Be aware though that since it is a Python task, your :append shall be Python code too.

Maybe there's another way but I don't see it right now.


Thanks in advance for your insights...

Join to automatically receive all group messages.