From 711594e428301006641f8ccee516d0cb283b6174 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 21 Jan 2007 00:46:08 +0000 Subject: [PATCH] Don't require MANIFEST2 hashes since that can trigger excessive fetches when sufficient digests already exist. Thanks to vapier for reporting. (trunk r5742:5743) svn path=/main/branches/2.1.2/; revision=5745 --- pym/portage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pym/portage.py b/pym/portage.py index a4855269c..432227ca7 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2677,7 +2677,9 @@ def digestgen(myarchives, mysettings, overwrite=1, manifestonly=0, myportdb=None mf = Manifest(mysettings["O"], mysettings["DISTDIR"], fetchlist_dict=fetchlist_dict) required_hash_types = set(portage_const.MANIFEST1_HASH_FUNCTIONS) - required_hash_types.update(portage_const.MANIFEST2_HASH_FUNCTIONS) + # Don't require MANIFEST2 hashes since that can trigger excessive + # fetches when sufficient digests already exist. + #required_hash_types.update(portage_const.MANIFEST2_HASH_FUNCTIONS) required_hash_types.add("size") dist_hashes = mf.fhashdict.get("DIST", {}) missing_hashes = set() -- 2.26.2