Gentoo Archives: gentoo-commits

From: Devan Franchini <twitch153@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/layman:master commit in: layman/overlays/
Date: Fri, 28 Aug 2015 03:43:30
Message-Id: 1440730466.8363c11894f9fc724f1c5d46d115c3d5919cbc37.twitch153@gentoo
1 commit: 8363c11894f9fc724f1c5d46d115c3d5919cbc37
2 Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 28 02:54:22 2015 +0000
4 Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 28 02:54:26 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/layman.git/commit/?id=8363c118
7
8 overlay.py: Modifies __eq__ attribute requirements
9
10 The previous method still made use of owner_name and owner_email to see
11 if the two were equal while it should've been checking for the "owners"
12 overlay attribute.
13
14 layman/overlays/overlay.py | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17 diff --git a/layman/overlays/overlay.py b/layman/overlays/overlay.py
18 index 11536d4..8052d4c 100755
19 --- a/layman/overlays/overlay.py
20 +++ b/layman/overlays/overlay.py
21 @@ -76,8 +76,8 @@ class Overlay(object):
22
23
24 def __eq__(self, other):
25 - for i in ('descriptions', 'homepage', 'name', 'owner_email',
26 - 'owner_name', 'priority', 'status'):
27 + for i in ('descriptions', 'homepage', 'name', 'owners', 'priority',
28 + 'status'):
29 if getattr(self, i) != getattr(other, i):
30 return False
31 for i in self.sources + other.sources: