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 ) id 1QNhk8-0005ei-0S for garchives@archives.gentoo.org; Sat, 21 May 2011 08:41:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DBD21C02E; Sat, 21 May 2011 08:40:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 189F81C02E for ; Sat, 21 May 2011 08:40:57 +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 828CD1B4029 for ; Sat, 21 May 2011 08:40:56 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id BED3B8001F for ; Sat, 21 May 2011 08:40:55 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: Subject: [gentoo-commits] proj/portage:master 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: aefaa5910129b31ec33e2dc02654e79e0611c351 Date: Sat, 21 May 2011 08:40:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 39d6a84d2c493a5f12dacba21e8c54d6 commit: aefaa5910129b31ec33e2dc02654e79e0611c351 Author: Zac Medico gentoo org> AuthorDate: Sat May 21 08:40:30 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat May 21 08:40:30 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Daefaa591 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: