Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:repoman commit in: pym/portage/
Date: Tue, 27 Jun 2017 20:06:19
Message-Id: 1497546905.e6abcc0b7cbdca481862a5c7cca946c01c471ffb.dolsen@gentoo
1 commit: e6abcc0b7cbdca481862a5c7cca946c01c471ffb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 15 07:27:47 2017 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 15 17:15:05 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=e6abcc0b
7
8 const: Change the MANIFEST2_REQUIRED_HASH to SHA512
9
10 Following the plan established in GLEP 59, we're long overdue
11 deprecating SHA256. Since we have finally got rid of the last packages
12 lacking SHA512 checksums, we can proceed with that. In order to prepare
13 for it, however, we need to change the required hash to SHA512 and make
14 sure developers install the new Portage & repoman versions first.
15
16 Of course, a better course of action would be to kill
17 MANIFEST2_REQUIRED_HASH entirely and make Portage capable of dealing
18 with any hash set. However, that's a larger piece of work and it would
19 delay the immediate goal.
20
21 Reviewed-by: Zac Medico <zmedico <AT> gentoo.org>
22
23 pym/portage/const.py | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
26 diff --git a/pym/portage/const.py b/pym/portage/const.py
27 index 052d4ca2f..cbd2b6042 100644
28 --- a/pym/portage/const.py
29 +++ b/pym/portage/const.py
30 @@ -234,7 +234,7 @@ MANIFEST2_HASH_FUNCTIONS = ("SHA256", "SHA512", "WHIRLPOOL",
31 "BLAKE2B", "BLAKE2S", "SHA3_256", "SHA3_512",
32 "STREEBOG256", "STREEBOG512")
33 MANIFEST2_HASH_DEFAULTS = frozenset(["SHA256", "SHA512", "WHIRLPOOL"])
34 -MANIFEST2_REQUIRED_HASH = "SHA256"
35 +MANIFEST2_REQUIRED_HASH = "SHA512"
36
37 MANIFEST2_IDENTIFIERS = ("AUX", "MISC", "DIST", "EBUILD")