Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/
Date: Sun, 02 Oct 2011 05:42:44
Message-Id: 8ac29097395f24ad331602d8e87fdf105ebd972b.zmedico@gentoo
1 commit: 8ac29097395f24ad331602d8e87fdf105ebd972b
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 1 07:40:53 2011 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 2 05:37:06 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=8ac29097
7
8 Manifest2 hash: SHA512
9
10 Provide SHA512 hash algorithm to be used as new Manifest2 hash.
11
12 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
13
14 ---
15 pym/portage/checksum.py | 1 +
16 1 files changed, 1 insertions(+), 0 deletions(-)
17
18 diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py
19 index a4cf8de..6bace4d 100644
20 --- a/pym/portage/checksum.py
21 +++ b/pym/portage/checksum.py
22 @@ -96,6 +96,7 @@ try:
23 md5hash = _generate_hash_function("MD5", hashlib.md5, origin="hashlib")
24 sha1hash = _generate_hash_function("SHA1", hashlib.sha1, origin="hashlib")
25 sha256hash = _generate_hash_function("SHA256", hashlib.sha256, origin="hashlib")
26 + sha512hash = _generate_hash_function("SHA512", hashlib.sha512, origin="hashlib")
27 for local_name, hash_name in (("rmd160", "ripemd160"), ("whirlpool", "whirlpool")):
28 try:
29 hashlib.new(hash_name)