Merge lp:~dobey/ubuntu/raring/twisted/lp1098127 into lp:ubuntu/raring/twisted

Proposed by dobey
Status: Merged
Merge reported by: Adam Conrad
Merged at revision: not available
Proposed branch: lp:~dobey/ubuntu/raring/twisted/lp1098127
Merge into: lp:ubuntu/raring/twisted
Diff against target: 57 lines (+37/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/lp1098127.diff (+29/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~dobey/ubuntu/raring/twisted/lp1098127
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+153470@code.launchpad.net

Description of the change

* debian/patches/lp1098127.diff:
  - Use new io_add_watch api on new versions of pygobject. (LP: #1098127)

To post a comment you must log in.

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 2013-01-23 12:19:06 +0000
3+++ debian/changelog 2013-03-14 21:45:26 +0000
4@@ -1,3 +1,10 @@
5+twisted (12.3.0-1ubuntu5) raring; urgency=low
6+
7+ * debian/patches/lp1098127.diff:
8+ - Use new io_add_watch api on new versions of pygobject. (LP: #1098127)
9+
10+ -- Rodney Dawes <rodney.dawes@ubuntu.com> Thu, 14 Mar 2013 17:24:59 -0400
11+
12 twisted (12.3.0-1ubuntu4) raring; urgency=low
13
14 * debian/patches/lp1102685.diff:
15
16=== added file 'debian/patches/lp1098127.diff'
17--- debian/patches/lp1098127.diff 1970-01-01 00:00:00 +0000
18+++ debian/patches/lp1098127.diff 2013-03-14 21:45:26 +0000
19@@ -0,0 +1,29 @@
20+Description: Use new io_add_watch api on new versions of pygobject.
21+Bug: https://twistedmatrix.com/trac/ticket/6369
22+Author: Rodney Dawes <rodney.dawes@canonical.com>
23+
24+=== modified file 'twisted/internet/_glibbase.py'
25+--- old/twisted/internet/_glibbase.py 2013-01-16 17:44:26 +0000
26++++ new/twisted/internet/_glibbase.py 2013-03-14 21:14:30 +0000
27+@@ -158,9 +158,17 @@ class GlibReactorBase(posixbase.PosixRea
28+ else:
29+ fileno = source
30+ wrapper = callback
31+- return self._glib.io_add_watch(
32+- fileno, condition, wrapper,
33+- priority=self._glib.PRIORITY_DEFAULT_IDLE)
34++ try:
35++ from gi import version_info as gi_version
36++ except ImportError:
37++ gi_version = (2, 32, 0)
38++ if gi_version < (3, 7, 3):
39++ return self._glib.io_add_watch(
40++ fileno, condition, wrapper,
41++ priority=self._glib.PRIORITY_DEFAULT_IDLE)
42++ else:
43++ return self._glib.io_add_watch(
44++ fileno, self._glib.PRIORITY_DEFAULT, condition, wrapper)
45+
46+
47+ def _ioEventCallback(self, source, condition):
48+
49
50=== modified file 'debian/patches/series'
51--- debian/patches/series 2013-01-23 12:19:06 +0000
52+++ debian/patches/series 2013-03-14 21:45:26 +0000
53@@ -3,3 +3,4 @@
54 python3.diff
55 python3_modules.diff
56 lp1102685.diff
57+lp1098127.diff

Subscribers

People subscribed via source and target branches

to all changes: