Merge lp:~dobey/ubuntu/quantal/aptdaemon/fix-gobject-imports into lp:ubuntu/quantal/aptdaemon

Proposed by dobey on 2012-08-09
Status: Merged
Merge reported by: dobey
Merged at revision: not available
Proposed branch: lp:~dobey/ubuntu/quantal/aptdaemon/fix-gobject-imports
Merge into: lp:ubuntu/quantal/aptdaemon
Diff against target: 53 lines (+35/-0)
3 files modified
debian/changelog (+8/-0)
debian/patches/fix_gobject_imports.patch (+26/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~dobey/ubuntu/quantal/aptdaemon/fix-gobject-imports
Reviewer Review Type Date Requested Status
Ubuntu branches 2012-08-09 Pending
Review via email: mp+119020@code.launchpad.net
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 2012-08-08 15:20:35 +0000
3+++ debian/changelog 2012-08-09 19:25:23 +0000
4@@ -1,3 +1,11 @@
5+aptdaemon (0.45+bzr848-0ubuntu3) quantal; urgency=low
6+
7+ * debian/patches/fix_gobject_imports.patch:
8+ - Check that the item in sys.modules is not None before trying to import.
9+ (LP: #1035032)
10+
11+ -- Rodney Dawes <rodney.dawes@ubuntu.com> Thu, 09 Aug 2012 15:21:04 -0400
12+
13 aptdaemon (0.45+bzr848-0ubuntu2) quantal; urgency=low
14
15 * debian/patches/fix_gettext_return_value_type.patch:
16
17=== added file 'debian/patches/fix_gobject_imports.patch'
18--- debian/patches/fix_gobject_imports.patch 1970-01-01 00:00:00 +0000
19+++ debian/patches/fix_gobject_imports.patch 2012-08-09 19:25:23 +0000
20@@ -0,0 +1,26 @@
21+=== modified file 'aptdaemon/client.py'
22+--- old/aptdaemon/client.py 2012-07-12 14:08:43 +0000
23++++ new/aptdaemon/client.py 2012-08-09 18:57:09 +0000
24+@@ -37,7 +37,7 @@ import dbus.glib
25+ import dbus.mainloop.glib
26+ dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
27+
28+-if 'gobject' in sys.modules:
29++if 'gobject' in sys.modules and sys.modules['gobject'] is not None:
30+ import gobject as GObject
31+ else:
32+ from gi.repository import GObject
33+
34+=== modified file 'aptdaemon/debconf.py'
35+--- old/aptdaemon/debconf.py 2011-11-25 00:23:33 +0000
36++++ new/aptdaemon/debconf.py 2012-08-09 18:57:09 +0000
37+@@ -35,7 +35,7 @@ import subprocess
38+ import tempfile
39+ import sys
40+
41+-if 'gi.repository' in sys.modules:
42++if 'gi.repository' in sys.modules and sys.modules['gi.repository'] is not None:
43+ from gi.repository import GObject
44+ else:
45+ import gobject as GObject
46+
47
48=== modified file 'debian/patches/series'
49--- debian/patches/series 2012-08-08 15:17:22 +0000
50+++ debian/patches/series 2012-08-09 19:25:23 +0000
51@@ -1,1 +1,2 @@
52 fix_gettext_return_value_type.patch
53+fix_gobject_imports.patch

Subscribers

People subscribed via source and target branches

to all changes: