From: Zac Medico Date: Tue, 22 May 2007 12:26:12 +0000 (-0000) Subject: Handle a KeyError if an MTIME is missing from the Packages index. X-Git-Tag: v2.2_pre1~1394 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5fd4d5b44ecc48572f0a1d37186c531d5ad06517;p=portage.git Handle a KeyError if an MTIME is missing from the Packages index. svn path=/main/trunk/; revision=6571 --- 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