diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-05-22 11:22:36 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-05-22 11:22:36 +0000 |
commit | b329fda74905845c273b6658c329c02b61dd16a2 (patch) | |
tree | 9c9f61d361341112f85a64b79262fc62af35e784 | |
parent | f45516f92d9cfa12736783ec62273e78f3805120 (diff) | |
download | portage-b329fda74905845c273b6658c329c02b61dd16a2.tar.gz portage-b329fda74905845c273b6658c329c02b61dd16a2.tar.bz2 portage-b329fda74905845c273b6658c329c02b61dd16a2.zip |
Fix size comparison logic.
svn path=/main/trunk/; revision=6570
-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 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 |