From: Zac Medico Date: Wed, 30 Apr 2008 09:00:24 +0000 (-0000) Subject: Handle a KeyError when validating the blocker cache. X-Git-Tag: v2.2_pre6~74 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0010ee6416a0597e5e6b2e0bb57309a81e53f439;p=portage.git Handle a KeyError when validating the blocker cache. svn path=/main/trunk/; revision=10045 --- 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: