eclass_cache: fix cache_getter typo
authorZac Medico <zmedico@gentoo.org>
Sat, 15 Oct 2011 01:49:13 +0000 (18:49 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 15 Oct 2011 01:49:13 +0000 (18:49 -0700)
This triggered a regression since commit
2ed1cb53cc4158af08c22d466b15b9a9a7767212 that caused cache entries
containing eclass paths to appear invalid.

pym/portage/eclass_cache.py

index fb187416d53dfabce5ca9e4107716407028ddd37..2f6e947700a8e26fd424c4e9f8a1c173204f9752 100644 (file)
@@ -138,7 +138,7 @@ class cache(object):
                our_getter = operator.attrgetter(chf_type)
                cache_getter = lambda x:x
                if stores_paths:
-                       key_getter = operator.itemgetter(1)
+                       cache_getter = operator.itemgetter(1)
                d = {}
                for eclass, ec_data in ec_dict.items():
                        cached_data = self.eclasses.get(eclass)