summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-09-23 15:19:18 +0200
committerMichał Górny <mgorny@gentoo.org>2022-10-04 08:56:08 +0200
commit2044fddc9109876cb8b908c0749cc2eaaccffab3 (patch)
tree6a9c32cf6c10232e29359a373c425d5c5b3b63e7
parentglep-0074: Clarify that DIST entries are specific to PMs (diff)
downloadglep-2044fddc9109876cb8b908c0749cc2eaaccffab3.tar.gz
glep-2044fddc9109876cb8b908c0749cc2eaaccffab3.tar.bz2
glep-2044fddc9109876cb8b908c0749cc2eaaccffab3.zip
glep-0074: Specify the format of size and checksum fields
Closes: https://bugs.gentoo.org/872332 Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--glep-0074.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/glep-0074.rst b/glep-0074.rst
index 0a55ad4..5cf0708 100644
--- a/glep-0074.rst
+++ b/glep-0074.rst
@@ -191,6 +191,19 @@ The encoding can be used for other characters as well. In particular,
escaping non-printable characters might be desirable.
+Size and checksum fields
+------------------------
+
+The Manifest entries used to describe files list the file size in bytes
+and one or more checksums. The size is expressed as an unsigned decimal
+integer. The checksums are expressed using pairs of fields, with
+the first field in every pair specifying the hash name and the second
+field its value. The names of hashes and the encoding of their values
+are specified in the `checksum algorithms`_ section.
+
+It is invalid to specify a hash name without a value.
+
+
File verification
-----------------