1 |
On 11/11/18 12:53 PM, Michał Górny wrote: |
2 |
> Hi, |
3 |
> |
4 |
> Ok, here's the second version integrating the feedback received. |
5 |
> The format is much simpler, based on nested tarballs inspired by Debian. |
6 |
> |
7 |
> The outer tarball is uncompressed and uses '.gpkg.tar' suffix. It |
8 |
> contains (preferably in order but PM should also handle packages with |
9 |
> mismatched order): |
10 |
> |
11 |
> 1. Optional (but recommended) "gpkg: ${PF}" package label that can be |
12 |
> used to quickly distinguish Gentoo binpkgs from regular tarballs |
13 |
> (for file(1)). |
14 |
> |
15 |
> 2. "metadata.tar${comp}" tarball containing binary package metadata |
16 |
> as files. |
17 |
> |
18 |
> 3. Optional "metadata.tar${comp}.sig" containing detached signature |
19 |
> for the metadata archive. |
20 |
> |
21 |
> 4. "contents.tar${comp}" tarball containing files to be installed. |
22 |
> |
23 |
> 5. Optional "contents.tar${comp}.sig" containing detached signature for |
24 |
> the contents archive. |
25 |
|
26 |
We'll want to access "contents.tar${comp}.sig" very early, but in the |
27 |
absence of an index containing offsets, normally we'd have to read all |
28 |
of "contents.tar${comp}" first. However, I suppose we could search |
29 |
backwards for the "contents.tar${comp}.sig" entry. |
30 |
-- |
31 |
Thanks, |
32 |
Zac |