melange icon indicating copy to clipboard operation
melange copied to clipboard

refactor: bump apko and use multitar api

Open kruskall opened this issue 2 years ago • 6 comments

PoC to have a look at it

kruskall avatar Mar 11 '22 23:03 kruskall

This has the side effect of changing the order of the content of multi tar: eg. signature is written last.

kruskall avatar Mar 11 '22 23:03 kruskall

This has the side effect of changing the order of the content of multi tar: eg. signature is written last.

This probably won't work, the APKv2 format needs Signature, then Control, then Data streams.

kaniini avatar Mar 11 '22 23:03 kaniini

This has the side effect of changing the order of the content of multi tar: eg. signature is written last.

This probably won't work, the APKv2 format needs Signature, then Control, then Data streams.

Should be fixed.

kruskall avatar Mar 12 '22 21:03 kruskall

I updated the apko package, which should fix the multitar E2E. Can you update apko version and run the tests?

kaniini avatar Mar 14 '22 19:03 kaniini

I updated the apko package, which should fix the multitar E2E. Can you update apko version and run the tests?

So... I think I misunderstood the package format. I'll do a bit of research and update this PR once I have something ready/better.

kruskall avatar Mar 14 '22 20:03 kruskall

The APKv2 format is basically a multi-part TAR with each part being its own tar stream.

There is the signature part, and then the control part, and then, for packages, the data part. Indices only have the first two parts.

kaniini avatar Mar 14 '22 21:03 kaniini