When assume-digests is enabled, for digest generation if the number of parsed digests...
authorZac Medico <zmedico@gentoo.org>
Mon, 3 Jul 2006 00:27:41 +0000 (00:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 3 Jul 2006 00:27:41 +0000 (00:27 -0000)
svn path=/main/trunk/; revision=3772

pym/portage_manifest.py

index 13c6932d2d6c474dde270dbb5be77263186015b3..ee9b4b8331ea8edd66aa31d9d46b208d7094ea37 100644 (file)
@@ -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: