Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] data/glep:glep-manifest commit in: /
Date: Mon, 30 Oct 2017 16:52:32
Message-Id: 1509380896.56b06b01676c486facf372d639e9fba0a694defd.mgorny@gentoo
1 commit: 56b06b01676c486facf372d639e9fba0a694defd
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 30 16:28:16 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 30 16:28:16 2017 +0000
6 URL: https://gitweb.gentoo.org/data/glep.git/commit/?id=56b06b01
7
8 glep-0074: Rewrite the file verificaton to cover OPTIONAL
9
10 glep-0074.rst | 25 ++++++++++++++++++-------
11 1 file changed, 18 insertions(+), 7 deletions(-)
12
13 diff --git a/glep-0074.rst b/glep-0074.rst
14 index 49fe0ca..d476ff3 100644
15 --- a/glep-0074.rst
16 +++ b/glep-0074.rst
17 @@ -135,16 +135,27 @@ File verification
18 When verifying a file against the Manifest, the following rules are
19 used:
20
21 -- if a file listed in Manifest is not present, then the verification
22 - for the file fails,
23 +1. If the file is covered directly or indirectly by an entry
24 + of the ``IGNORE`` type, the verification always succeeds.
25
26 -- if a file listed in Manifest is present but has a different size
27 - or one of the checksums does not match, the verification fails,
28 +2. If the file is covered by an entry of the ``MANIFEST``, ``DATA``,
29 + ``MISC``, ``EBUILD`` or ``AUX`` type:
30
31 -- if a file is present but not listed in Manifest, the verification
32 - fails,
33 + a. if the file is not present, then the verification fails,
34
35 -- otherwise, the verification succeeds.
36 + b. if the file is present but has a different size or one
37 + of the checksums does not match, the verification fails,
38 +
39 + c. otherwise, the verification succeeds.
40 +
41 +3. If the file is covered by an entry of the ``OPTIONAL`` type:
42 +
43 + a. if the file is present, then the verification fails,
44 +
45 + b. otherwise, the verification succeeds.
46 +
47 +4. If the file is present but not listed in Manifest, the verification
48 + fails.
49
50 Unless specified otherwise, the package manager must not allow using
51 any files for which the verification failed. The package manager may