diff options
-rw-r--r-- | pym/portage/dbapi/bintree.py | 4 |
1 files 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 |