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/cache/
Date: Tue, 29 Dec 2015 16:42:21
Message-Id: 1451407204.7e663905063ca92ad82127a797356e35bfc5bdfa.zmedico@gentoo
1 commit: 7e663905063ca92ad82127a797356e35bfc5bdfa
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 25 05:56:18 2015 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 16:40:04 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=7e663905
7
8 anydbm: enable md5 validation (bug 568934)
9
10 Add forward-compatibility for cache entries containing md5 digests
11 instead of mtimes for validation.
12
13 X-Gentoo-Bug: 568934
14 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=568934
15 Acked-by: Alexander Berntsen <bernalex <AT> gentoo.org>
16
17 pym/portage/cache/anydbm.py | 3 +++
18 1 file changed, 3 insertions(+)
19
20 diff --git a/pym/portage/cache/anydbm.py b/pym/portage/cache/anydbm.py
21 index 1d56b14..80d24e5 100644
22 --- a/pym/portage/cache/anydbm.py
23 +++ b/pym/portage/cache/anydbm.py
24 @@ -36,6 +36,9 @@ from portage.cache import cache_errors
25
26 class database(fs_template.FsBased):
27
28 + validation_chf = 'mtime'
29 + chf_types = ('mtime', 'md5')
30 +
31 autocommits = True
32 cleanse_keys = True
33 serialize_eclasses = False