aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2015-08-27 22:54:22 -0400
committerDevan Franchini <twitch153@gentoo.org>2015-08-27 22:54:26 -0400
commit8363c11894f9fc724f1c5d46d115c3d5919cbc37 (patch)
tree11b5fd3b0c8797d0127282c931ecbb8df9135abc
parentmaker.py: Modifies query prompts (diff)
downloadlayman-8363c11894f9fc724f1c5d46d115c3d5919cbc37.tar.gz
layman-8363c11894f9fc724f1c5d46d115c3d5919cbc37.tar.bz2
layman-8363c11894f9fc724f1c5d46d115c3d5919cbc37.zip
overlay.py: Modifies __eq__ attribute requirements
The previous method still made use of owner_name and owner_email to see if the two were equal while it should've been checking for the "owners" overlay attribute.
-rwxr-xr-xlayman/overlays/overlay.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/layman/overlays/overlay.py b/layman/overlays/overlay.py
index 11536d4..8052d4c 100755
--- a/layman/overlays/overlay.py
+++ b/layman/overlays/overlay.py
@@ -76,8 +76,8 @@ class Overlay(object):
def __eq__(self, other):
- for i in ('descriptions', 'homepage', 'name', 'owner_email',
- 'owner_name', 'priority', 'status'):
+ for i in ('descriptions', 'homepage', 'name', 'owners', 'priority',
+ 'status'):
if getattr(self, i) != getattr(other, i):
return False
for i in self.sources + other.sources: