From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-commits+bounces-347746-garchives=archives.gentoo.org@lists.gentoo.org>) id 1QPU0w-0004MD-Sn for garchives@archives.gentoo.org; Thu, 26 May 2011 06:25:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 83EF41C52C; Thu, 26 May 2011 06:18:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4DE801C507 for <gentoo-commits@lists.gentoo.org>; Thu, 26 May 2011 06:18:37 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 160821B4036 for <gentoo-commits@lists.gentoo.org>; Thu, 26 May 2011 06:18:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 75AB180512 for <gentoo-commits@lists.gentoo.org>; Thu, 26 May 2011 06:18:36 +0000 (UTC) From: "Zac Medico" <zmedico@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" <zmedico@gentoo.org> Message-ID: <2e54071b3ccd259a555f30f1cc32b2be9ef136d3.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:2.1.9 commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/Task.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 2e54071b3ccd259a555f30f1cc32b2be9ef136d3 Date: Thu, 26 May 2011 06:18:36 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 45006264f0948632617debcad703b962 commit: 2e54071b3ccd259a555f30f1cc32b2be9ef136d3 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Sat May 21 08:40:30 2011 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Thu May 26 03:43:33 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D2e54071b Task.__eq__: allow _hash_key as input This is used by depgraph._pkg() for lookups. --- pym/_emerge/Task.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/pym/_emerge/Task.py b/pym/_emerge/Task.py index 3e1a4ba..efbe3a9 100644 --- a/pym/_emerge/Task.py +++ b/pym/_emerge/Task.py @@ -9,7 +9,9 @@ class Task(SlotObject): try: return self._hash_key =3D=3D other._hash_key except AttributeError: - return False + # depgraph._pkg() generates _hash_key + # for lookups here, so handle that + return self._hash_key =3D=3D other =20 def __ne__(self, other): try: