From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CFAED1396D9 for ; Mon, 13 Nov 2017 17:35:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 19B4EE125C; Mon, 13 Nov 2017 17:35:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EB9CDE1255 for ; Mon, 13 Nov 2017 17:35:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 11A9E33FE60 for ; Mon, 13 Nov 2017 17:35:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 37AAC9AF2 for ; Mon, 13 Nov 2017 17:35:24 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1510590781.70fd19782e826360637029bcba4c237ac7ccfedb.mgorny@gentoo> Subject: [gentoo-commits] data/glep:glep-manifest commit in: / X-VCS-Repository: data/glep X-VCS-Files: glep-0074.rst X-VCS-Directories: / X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 70fd19782e826360637029bcba4c237ac7ccfedb X-VCS-Branch: glep-manifest Date: Mon, 13 Nov 2017 17:35:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a5fba35d-9664-4da5-ba38-499cbe5dfdcc X-Archives-Hash: a6f7b8e223f132e982c7115d77aeffbf commit: 70fd19782e826360637029bcba4c237ac7ccfedb Author: Michał Górny gentoo org> AuthorDate: Mon Oct 30 16:28:16 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Nov 13 16:33:01 2017 +0000 URL: https://gitweb.gentoo.org/data/glep.git/commit/?id=70fd1978 glep-0074: Rewrite the file verificaton to cover OPTIONAL glep-0074.rst | 25 ++++++++++++++++++------- 1 file 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