From 0010ee6416a0597e5e6b2e0bb57309a81e53f439 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 30 Apr 2008 09:00:24 +0000 Subject: [PATCH] Handle a KeyError when validating the blocker cache. svn path=/main/trunk/; revision=10045 --- pym/_emerge/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index ad9a05c86..06c034dd7 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -1407,7 +1407,12 @@ class BlockerCache(DictMixin): invalid_cache.add(cpv) continue counter, atoms = value - if counter != long(self._vardb.aux_get(cpv, ["COUNTER"])[0]): + try: + if counter != long(self._vardb.aux_get(cpv, ["COUNTER"])[0]): + invalid_cache.add(cpv) + continue + except KeyError: + # The package is no longer installed. invalid_cache.add(cpv) continue for cpv in invalid_cache: -- 2.26.2