commit:     6d4548b7d0cabff75766121c8f289d66458845b3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  7 23:22:20 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Nov 10 17:19:52 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d4548b7

layout.conf: Add manifest-required-hashes setting

Add the manifest-required-hashes setting that specifies which hashes
need to be present in the Manifest files for Portage to consider old
distfile checksums acceptable (and not refetch the files to rehash
them). It is complementary to manifest-hashes that specifies which
hashes are used in new/updated entries.

Formerly, this setting was hardcoded in Portage. However, the new
Portage release will no longer do that and instead expect layout.conf
to supply the setting.

 metadata/layout.conf | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/metadata/layout.conf b/metadata/layout.conf
index a46d1b7b941..cb517f35688 100644
--- a/metadata/layout.conf
+++ b/metadata/layout.conf
@@ -4,11 +4,17 @@
 # For details on this file, see the layout.conf section of the
 # portage(5) man page.
 
+# The following hashes are used for new/updated Manifest entries.
 # This went live Wednesday, July 4, 2012 at 10:00 UTC
 # 
https://archives.gentoo.org/gentoo-dev-announce/message/a15cbea85dd089c99302f949b4072c20
 # https://www.gentoo.org/glep/glep-0059.html
 manifest-hashes = SHA256 SHA512 WHIRLPOOL
 
+# The following hashes are required on all Manifest entries. If any
+# of them are missing, repoman will refetch and rehash old distfiles.
+# Otherwise, old distfiles will keep using their current hash set.
+manifest-required-hashes = SHA512
+
 # 2013-04-09 gentoo's council says to deprecate EAPIs 1 and 2 (bug #470670).
 # 2014-02-25 council meeting deprecated EAPIs 0 and 3.
 # 2015-10-11 council meeting deprecated EAPI 4.

Reply via email to