aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-02 16:43:27 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-02 16:43:27 -0700
commite5b963b794be20276786447bc4f2515e17e38086 (patch)
tree31b2baa9016d345d6db1147cbfb703e6a3db5985 /pym/portage/manifest.py
parentManifest.create(): pass allow_* to constructor (diff)
downloadportage-e5b963b794be20276786447bc4f2515e17e38086.tar.gz
portage-e5b963b794be20276786447bc4f2515e17e38086.tar.bz2
portage-e5b963b794be20276786447bc4f2515e17e38086.zip
Manifest.create(): tweak assume-digests code
If we have a local file, before we assume that we don't need to compute any digests, make sure that the pre-computed digest types are exactly the same types that we desire.
Diffstat (limited to 'pym/portage/manifest.py')
-rw-r--r--pym/portage/manifest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/manifest.py b/pym/portage/manifest.py
index 9db8acc1e..d09de2606 100644
--- a/pym/portage/manifest.py
+++ b/pym/portage/manifest.py
@@ -387,7 +387,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 \
+ set(distfilehashes[f]) == set(self.hashes) and \
distfilehashes[f]["size"] == mystat.st_size)):
self.fhashdict["DIST"][f] = distfilehashes[f]
else: