Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH v2 2/3] glep-0074: Specify the format of size and checksum fields
Date: Sun, 25 Sep 2022 19:07:46
Message-Id: 20220925190706.14837-3-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH v2 0/3] glep-0074: clarifications about size and checksum fields by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 glep-0074.rst | 13 +++++++++++++
4 1 file changed, 13 insertions(+)
5
6 diff --git a/glep-0074.rst b/glep-0074.rst
7 index 54bf216..16cbb67 100644
8 --- a/glep-0074.rst
9 +++ b/glep-0074.rst
10 @@ -191,6 +191,19 @@ The encoding can be used for other characters as well. In particular,
11 escaping non-printable characters might be desirable.
12
13
14 +Size and checksum fields
15 +------------------------
16 +
17 +The Manifest entries used to describe files list the file size in bytes
18 +and one or more checksums. The size is expressed as an unsigned decimal
19 +integer. The checksums are expressed using pairs of fields, with
20 +the first field in every pair specifying the hash name and the second
21 +field its value. The names of hashes and the encoding of their values
22 +are specified in the `checksum algorithms`_ section.
23 +
24 +It is invalid to specify a hash name without a value.
25 +
26 +
27 File verification
28 -----------------
29
30 --
31 2.37.3