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 1QhqoN-0000fb-CU for garchives@archives.gentoo.org; Fri, 15 Jul 2011 22:24:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 70B1F21C0DE; Fri, 15 Jul 2011 22:24:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3E43C21C0DC for ; Fri, 15 Jul 2011 22:24:21 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C0B812AC15E for ; Fri, 15 Jul 2011 22:24:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id B3AEE8004A for ; Fri, 15 Jul 2011 22:24:19 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/basepm/ X-VCS-Repository: proj/gentoopm X-VCS-Files: gentoopm/basepm/repo.py X-VCS-Directories: gentoopm/basepm/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ea0909d0ae5dd7142b1d899c5b7655248ac0dafb Date: Fri, 15 Jul 2011 22:24:19 +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: b05b682a88b8c3029c82e6db82057d87 commit: ea0909d0ae5dd7142b1d899c5b7655248ac0dafb Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Fri Jul 15 22:22:21 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Fri Jul 15 22:22:21 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoopm.git;= a=3Dcommit;h=3Dea0909d0 PMRepository: support '!=3D' and hashing. --- gentoopm/basepm/repo.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/gentoopm/basepm/repo.py b/gentoopm/basepm/repo.py index 7f517ad..ba41c38 100644 --- a/gentoopm/basepm/repo.py +++ b/gentoopm/basepm/repo.py @@ -100,5 +100,11 @@ class PMEbuildRepository(PMRepository): return False return self.name =3D=3D other.name and self.path =3D=3D other.path =20 + def __ne__(self, other): + return not self.__eq__(other) + + def __hash__(self): + return hash((self.name, self.path)) + def __repr__(self): return '%s(%s)' % (self.__class__.__name__, repr(self.name))