aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2015-12-24 21:56:18 -0800
committerZac Medico <zmedico@gentoo.org>2015-12-29 08:40:04 -0800
commit7e663905063ca92ad82127a797356e35bfc5bdfa (patch)
treed3793ac66b74b0f21260cfa320cdac215bc33f32
parentsqlite: enable md5 validation (bug 568934) (diff)
downloadportage-7e663905.tar.gz
portage-7e663905.tar.bz2
portage-7e663905.zip
anydbm: enable md5 validation (bug 568934)
Add forward-compatibility for cache entries containing md5 digests instead of mtimes for validation. X-Gentoo-Bug: 568934 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=568934 Acked-by: Alexander Berntsen <bernalex@gentoo.org>
-rw-r--r--pym/portage/cache/anydbm.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/cache/anydbm.py b/pym/portage/cache/anydbm.py
index 1d56b1458..80d24e55d 100644
--- a/pym/portage/cache/anydbm.py
+++ b/pym/portage/cache/anydbm.py
@@ -36,6 +36,9 @@ from portage.cache import cache_errors
class database(fs_template.FsBased):
+ validation_chf = 'mtime'
+ chf_types = ('mtime', 'md5')
+
autocommits = True
cleanse_keys = True
serialize_eclasses = False