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

Subscribers

People subscribed via source and target branches

to all changes: