Merge lp:~om26er/ubuntu/maverick/papyon/papyon-fix2-665526 into lp:ubuntu/maverick-proposed/papyon

Proposed by Omer Akram
Status: Needs review
Proposed branch: lp:~om26er/ubuntu/maverick/papyon/papyon-fix2-665526
Merge into: lp:ubuntu/maverick-proposed/papyon
Diff against target: 57 lines (+39/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/dont_send_invalid_ADL.patch (+31/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~om26er/ubuntu/maverick/papyon/papyon-fix2-665526
Reviewer Review Type Date Requested Status
Artur Rona (community) Approve
Review via email: mp+42342@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Omer Akram (om26er) wrote :

resubmitted the merge proposal since the first one had a lot of corrections and would have spoiled the maverick bzr history ;)

Revision history for this message
Artur Rona (ari-tczew) wrote :

Now looks good, package built fine. Please upload it.

review: Approve

Unmerged revisions

27. By Omer Akram

* debian/patches/dont_send_invalid_ADL.patch:
  - Don't send invalid ADL when a contact is on both Allow and Block list. (LP: #665526)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2010-10-20 23:27:15 +0000
+++ debian/changelog 2010-12-01 10:33:53 +0000
@@ -1,3 +1,10 @@
1papyon (0.5.1-0ubuntu2.1) maverick-proposed; urgency=low
2
3 * debian/patches/dont_send_invalid_ADL.patch:
4 - Don't send invalid ADL when a contact is on both Allow and Block list. (LP: #665526)
5
6 -- Omer Akram <om26er@ubuntu.com> Wed, 01 Dec 2010 15:20:42 +0500
7
1papyon (0.5.1-0ubuntu2) maverick-proposed; urgency=low8papyon (0.5.1-0ubuntu2) maverick-proposed; urgency=low
29
3 * debian/patches/lp_663670.patch10 * debian/patches/lp_663670.patch
411
=== added file 'debian/patches/dont_send_invalid_ADL.patch'
--- debian/patches/dont_send_invalid_ADL.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/dont_send_invalid_ADL.patch 2010-12-01 10:33:53 +0000
@@ -0,0 +1,31 @@
1From: Omer Akram <om26er@ubuntu.com>
2Author: Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk>
3Subject: Don't send invalid ADL when a contact is on both Allow and Block list.
4Origin: http://cgit.freedesktop.org/papyon/commit/?id=991500a6d4c0c86e39738cf233a136c2a60e2951
5Bug-Ubuntu: https://launchpad.net/bugs/665526
6
7---
8diff --git a/papyon/msnp/notification.py b/papyon/msnp/notification.py
9index 83e7fce..0203c1a 100644
10--- a/papyon/msnp/notification.py
11+++ b/papyon/msnp/notification.py
12@@ -768,9 +768,16 @@ class NotificationProtocol(BaseProtocol, gobject.GObject):
13 address_book.profile.display_name)
14
15 contacts = address_book.contacts.group_by_domain()
16+ mask = ~(profile.Membership.REVERSE | profile.Membership.PENDING)
17+
18+ for contact in address_book.contacts:
19+ if (contact.memberships & mask & ~profile.Membership.FORWARD) == \
20+ (profile.Membership.ALLOW | profile.Membership.BLOCK):
21+ logger.warning("Contact is on both Allow and Block list; " \
22+ "removing from Allow list (%s)" % contact.account)
23+ contact._remove_membership(profile.Membership.ALLOW)
24
25 payloads = ['<ml l="1">']
26- mask = ~(profile.Membership.REVERSE | profile.Membership.PENDING)
27 for domain, contacts in contacts.iteritems():
28 payloads[-1] += '<d n="%s">' % domain
29 for contact in contacts:
30--
31cgit v0.8.3-6-g21f6
032
=== modified file 'debian/patches/series'
--- debian/patches/series 2010-10-20 23:27:15 +0000
+++ debian/patches/series 2010-12-01 10:33:53 +0000
@@ -1,1 +1,2 @@
1dont_send_invalid_ADL.patch
1lp_663670.patch2lp_663670.patch

Subscribers

People subscribed via source and target branches

to all changes: