From: Zac Medico Date: Tue, 22 May 2007 11:22:36 +0000 (-0000) Subject: Fix size comparison logic. X-Git-Tag: v2.2_pre1~1395 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b329fda74905845c273b6658c329c02b61dd16a2;p=portage.git Fix size comparison logic. svn path=/main/trunk/; revision=6570 --- diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index d15f00b8b..9d9b84005 100644 --- a/pym/portage/dbapi/bintree.py +++ b/pym/portage/dbapi/bintree.py @@ -476,9 +476,9 @@ class binarytree(object): d.clear() if d: try: - if long(d.get("SIZE")) != long(s.st_size): + if long(d["SIZE"]) != long(s.st_size): d.clear() - except ValueError: + except (KeyError, ValueError): d.clear() d["CPV"] = mycpv