From b329fda74905845c273b6658c329c02b61dd16a2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 22 May 2007 11:22:36 +0000 Subject: Fix size comparison logic. svn path=/main/trunk/; revision=6570 --- pym/portage/dbapi/bintree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym') 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 -- cgit v1.2.3-1-g7c22