diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-10-30 17:28:16 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-11-25 21:49:14 +0100 |
commit | c7f40021920939b262a35be9b95f9d05e58212f2 (patch) | |
tree | 75b19ec6fb9e59868bed95805d5d00ff2cb895d1 /glep-0074.rst | |
parent | glep-0074: Split 'Directory tree coverage' section out (diff) | |
download | glep-c7f40021920939b262a35be9b95f9d05e58212f2.tar.gz glep-c7f40021920939b262a35be9b95f9d05e58212f2.tar.bz2 glep-c7f40021920939b262a35be9b95f9d05e58212f2.zip |
glep-0074: Rewrite the file verificaton to cover OPTIONAL
Diffstat (limited to 'glep-0074.rst')
-rw-r--r-- | glep-0074.rst | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/glep-0074.rst b/glep-0074.rst index 49fe0ca..d476ff3 100644 --- a/glep-0074.rst +++ b/glep-0074.rst @@ -135,16 +135,27 @@ File verification When verifying a file against the Manifest, the following rules are used: -- if a file listed in Manifest is not present, then the verification - for the file fails, +1. If the file is covered directly or indirectly by an entry + of the ``IGNORE`` type, the verification always succeeds. -- if a file listed in Manifest is present but has a different size - or one of the checksums does not match, the verification fails, +2. If the file is covered by an entry of the ``MANIFEST``, ``DATA``, + ``MISC``, ``EBUILD`` or ``AUX`` type: -- if a file is present but not listed in Manifest, the verification - fails, + a. if the file is not present, then the verification fails, -- otherwise, the verification succeeds. + b. if the file is present but has a different size or one + of the checksums does not match, the verification fails, + + c. otherwise, the verification succeeds. + +3. If the file is covered by an entry of the ``OPTIONAL`` type: + + a. if the file is present, then the verification fails, + + b. otherwise, the verification succeeds. + +4. If the file is present but not listed in Manifest, the verification + fails. Unless specified otherwise, the package manager must not allow using any files for which the verification failed. The package manager may |