From 4a7ed6990d142aed4b0773576b4375f208f8ee59 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Fri, 15 Jan 2010 00:53:38 +0100 Subject: Fix another test case --- CHANGES | 2 -- layman/overlays/overlay.py | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index fb820cc..18acabe 100644 --- a/CHANGES +++ b/CHANGES @@ -4,8 +4,6 @@ CHANGES Version TODO =================================== - - TODO make test suite work again - - Add support for several sources per overlay (also fixes #280472) On addition all sources will be probed until a working one is found. This should help Layman through many firewalls. diff --git a/layman/overlays/overlay.py b/layman/overlays/overlay.py index c6c7d64..93cf009 100644 --- a/layman/overlays/overlay.py +++ b/layman/overlays/overlay.py @@ -190,9 +190,11 @@ class Overlay(object): def __eq__(self, other): for i in ('description', 'homepage', 'name', 'owner_email', - 'owner_name', 'priority', 'src', 'status'): + 'owner_name', 'priority', 'status'): if getattr(self, i) != getattr(other, i): return False + if set(self.source_uris()) != set(other.source_uris()): + return False return True def __ne__(self, other): -- cgit v1.2.3-65-gdbad