From 5e88b0d4ced1deb01ae18ea7868745d35b2fd7b2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 14 Oct 2011 18:49:13 -0700 Subject: [PATCH] eclass_cache: fix cache_getter typo This triggered a regression since commit 2ed1cb53cc4158af08c22d466b15b9a9a7767212 that caused cache entries containing eclass paths to appear invalid. --- pym/portage/eclass_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/eclass_cache.py b/pym/portage/eclass_cache.py index fb187416d..2f6e94770 100644 --- a/pym/portage/eclass_cache.py +++ b/pym/portage/eclass_cache.py @@ -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) -- 2.26.2