summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-03 00:27:41 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-03 00:27:41 +0000
commiteb28c2231f2d7ebf2decbe0c1fcd8dc0fb54a347 (patch)
tree5b417f3636abec5f4adcc0034c3f1a543ce8d7a2
parent1e7d087800f9f8372109f67b02a44fdb20fe4ac5 (diff)
downloadportage-eb28c2231f2d7ebf2decbe0c1fcd8dc0fb54a347.tar.gz
portage-eb28c2231f2d7ebf2decbe0c1fcd8dc0fb54a347.tar.bz2
portage-eb28c2231f2d7ebf2decbe0c1fcd8dc0fb54a347.zip
When assume-digests is enabled, for digest generation if the number of parsed digests does not match the number of digest types that are supported. See bug #138911.
svn path=/main/trunk/; revision=3772
-rw-r--r--pym/portage_manifest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage_manifest.py b/pym/portage_manifest.py
index 13c6932d2..ee9b4b833 100644
--- a/pym/portage_manifest.py
+++ b/pym/portage_manifest.py
@@ -459,6 +459,7 @@ class Manifest(object):
((assumeDistHashesSometimes and mystat is None) or \
(assumeDistHashesAlways and mystat is None) or \
(assumeDistHashesAlways and mystat is not None and \
+ len(distfilehashes[f]) == len(self.hashes) and \
distfilehashes[f]["size"] == mystat.st_size)):
self.fhashdict["DIST"][f] = distfilehashes[f]
else: