From 5fd4d5b44ecc48572f0a1d37186c531d5ad06517 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 22 May 2007 12:26:12 +0000 Subject: [PATCH] Handle a KeyError if an MTIME is missing from the Packages index. svn path=/main/trunk/; revision=6571 --- pym/portage/dbapi/bintree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index 9d9b84005..030f03163 100644 --- a/pym/portage/dbapi/bintree.py +++ b/pym/portage/dbapi/bintree.py @@ -412,9 +412,9 @@ class binarytree(object): skip = False if d: try: - if long(d.get("MTIME")) == long(s.st_mtime): + if long(d["MTIME"]) == long(s.st_mtime): skip = True - except ValueError: + except (KeyError, ValueError): pass if skip and not self._pkgindex_keys.difference(d): pkg_paths[mycpv] = mypath -- 2.26.2