summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-10-25 23:02:30 +0000
committerZac Medico <zmedico@gentoo.org>2006-10-25 23:02:30 +0000
commitc950c465824577b11f4e961f3ead46895ef6afcd (patch)
treee7a6a5a5dac121b58a523101ecd667bd468f81a3 /pym/eclass_cache.py
parentFor full compatibility with older versions of portage, write the path in the ... (diff)
downloadportage-idfetch-c950c465824577b11f4e961f3ead46895ef6afcd.tar.gz
portage-idfetch-c950c465824577b11f4e961f3ead46895ef6afcd.tar.bz2
portage-idfetch-c950c465824577b11f4e961f3ead46895ef6afcd.zip
Fix broken is_eclass_data_valid comparison logic.
svn path=/main/trunk/; revision=4819
Diffstat (limited to 'pym/eclass_cache.py')
-rw-r--r--pym/eclass_cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/eclass_cache.py b/pym/eclass_cache.py
index 6b4f87cd..b0f82fd0 100644
--- a/pym/eclass_cache.py
+++ b/pym/eclass_cache.py
@@ -56,13 +56,13 @@ class cache:
def is_eclass_data_valid(self, ec_dict):
if not isinstance(ec_dict, dict):
return False
- for eclass, mtime in ec_dict.iteritems():
+ for eclass, tup in ec_dict.iteritems():
cached_data = self.eclasses.get(eclass, None)
""" Only use the mtime for validation since the probability of a
collision is small and, depending on the cache implementation, the
path may not be specified (cache from rsync mirrors, for example).
"""
- if cached_data is None or mtime != cached_data[1]:
+ if cached_data is None or tup[1] != cached_data[1]:
return False
return True