summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-21 00:40:45 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-21 00:40:45 +0000
commit41b44c5f91e0ea6cc5aadf419df4402efbae36c1 (patch)
tree8437855ebff67f461322b259d3795bc4c0c6d76e
parent6968bbee243f00df105b2fb0f32642577db967b7 (diff)
downloadportage-41b44c5f91e0ea6cc5aadf419df4402efbae36c1.tar.gz
portage-41b44c5f91e0ea6cc5aadf419df4402efbae36c1.tar.bz2
portage-41b44c5f91e0ea6cc5aadf419df4402efbae36c1.zip
Don't require MANIFEST2 hashes since that can trigger excessive fetches when sufficient digests already exist. Thanks to vapier for reporting.
svn path=/main/trunk/; revision=5743
-rw-r--r--pym/portage.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 69ba15cfc..c8c635f96 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2703,7 +2703,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()