summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-08-24 17:21:47 +0000
committerZac Medico <zmedico@gentoo.org>2008-08-24 17:21:47 +0000
commit45f577605f78da1ea0c0155a712a22428313f379 (patch)
tree2cdf65bd4981579a90b1555adda047934414220a
parent4a781e5c2687466b194ade50a59a989fa02de29c (diff)
downloadportage-45f577605f78da1ea0c0155a712a22428313f379.tar.gz
portage-45f577605f78da1ea0c0155a712a22428313f379.tar.bz2
portage-45f577605f78da1ea0c0155a712a22428313f379.zip
Avoid possible AttributeError raised from _ObjectKey.__eq__().
svn path=/main/trunk/; revision=11466
-rw-r--r--pym/portage/dbapi/vartree.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index aa7c9c3fe..b3eefe8c4 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -167,6 +167,8 @@ class LinkageMap(object):
return hash(self._key)
def __eq__(self, other):
+ if not isinstance(other, self.__class__):
+ return False
return self._key == other._key
def _generate_object_key(self, object):