Merge lp:~dobey/ubuntuone-client/fix-msg-menu into lp:ubuntuone-client

Proposed by dobey
Status: Merged
Approved by: dobey
Approved revision: 1329
Merged at revision: 1329
Proposed branch: lp:~dobey/ubuntuone-client/fix-msg-menu
Merge into: lp:ubuntuone-client
Diff against target: 87 lines (+21/-5)
4 files modified
tests/platform/messaging/test_linux.py (+9/-1)
tests/platform/sync_menu/test_linux.py (+1/-1)
ubuntuone/platform/messaging/linux.py (+7/-2)
ubuntuone/platform/sync_menu/linux.py (+4/-1)
To merge this branch: bzr merge lp:~dobey/ubuntuone-client/fix-msg-menu
Reviewer Review Type Date Requested Status
Diego Sarmentero (community) Approve
Alejandro J. Cura (community) Approve
Review via email: mp+127280@code.launchpad.net

Commit message

Start the control panel, not the old installer which no longer exists.

To post a comment you must log in.
Revision history for this message
Alejandro J. Cura (alecu) wrote :

Looks good

review: Approve
Revision history for this message
Diego Sarmentero (diegosarmentero) wrote :

+1

review: Approve
Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (408.1 KiB)

The attempt to merge lp:~dobey/ubuntuone-client/fix-msg-menu into lp:ubuntuone-client failed. Below is the output from the failed tests.

/usr/bin/gnome-autogen.sh
checking for autoconf >= 2.53...
  testing autoconf2.50... not found.
  testing autoconf... found 2.69
checking for automake >= 1.10...
  testing automake-1.12... not found.
  testing automake-1.11... found 1.11.6
checking for libtool >= 1.5...
  testing libtoolize... found 2.4.2
checking for intltool >= 0.30...
  testing intltoolize... found 0.50.2
checking for pkg-config >= 0.14.0...
  testing pkg-config... found 0.26
checking for gtk-doc >= 1.0...
  testing gtkdocize... found 1.18
Checking for required M4 macros...
Checking for forbidden M4 macros...
Processing ./configure.ac
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Running intltoolize...
Running gtkdocize...
Running aclocal-1.11...
Running autoconf...
Running autoheader...
Running automake-1.11...
Running ./configure --enable-gtk-doc --enable-debug ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell under...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/platform/messaging/test_linux.py'
2--- tests/platform/messaging/test_linux.py 2012-05-02 20:14:50 +0000
3+++ tests/platform/messaging/test_linux.py 2012-10-01 14:46:19 +0000
4@@ -39,7 +39,7 @@
5 from twisted.internet import defer
6 from twisted.trial.unittest import TestCase
7 from ubuntuone.devtools.testcases import skipIf
8-
9+from ubuntuone.platform.messaging import linux
10 from ubuntuone.platform.messaging.linux import (
11 Messaging,
12 _server_callback,
13@@ -160,3 +160,11 @@
14 actual_callback = messaging.create_callback()
15 actual_callback(messaging.indicators[-1])
16 self.assertEquals(0, len(messaging.indicators))
17+
18+ def test_open_u1(self):
19+ """Check that the proper action is executed."""
20+ data = []
21+
22+ self.patch(linux.glib, "spawn_command_line_async", data.append)
23+ _server_callback(None)
24+ self.assertEqual(data, ['ubuntuone-control-panel-qt'])
25
26=== modified file 'tests/platform/sync_menu/test_linux.py'
27--- tests/platform/sync_menu/test_linux.py 2012-09-28 11:57:39 +0000
28+++ tests/platform/sync_menu/test_linux.py 2012-10-01 14:46:19 +0000
29@@ -177,7 +177,7 @@
30
31 self.patch(linux.glib, "spawn_command_line_async", data.append)
32 self.sync_menu.open_control_panel()
33- self.assertEqual(data, ['ubuntuone-installer'])
34+ self.assertEqual(data, ['ubuntuone-control-panel-qt'])
35
36 def test_go_to_web(self):
37 """Check that the proper action is executed."""
38
39=== modified file 'ubuntuone/platform/messaging/linux.py'
40--- ubuntuone/platform/messaging/linux.py 2012-04-30 17:33:18 +0000
41+++ ubuntuone/platform/messaging/linux.py 2012-10-01 14:46:19 +0000
42@@ -34,6 +34,7 @@
43 # of them are available, we should fall back to silently discarding
44 # messages.
45
46+import logging
47 import sys
48
49 indicate = None
50@@ -61,6 +62,8 @@
51
52 from ubuntuone.status.messaging import AbstractMessaging
53
54+logger = logging.getLogger("ubuntuone.platform.Messaging")
55+
56
57 def open_volumes():
58 """Open the control panel to the shares tab."""
59@@ -69,8 +72,10 @@
60
61 def _server_callback(the_indicator, message_time=None):
62 """Open the control panel to the shares tab."""
63- glib.spawn_command_line_async('ubuntuone-installer')
64-# pylint: enable=W0613
65+ try:
66+ glib.spawn_command_line_async('ubuntuone-control-panel-qt')
67+ except glib.GError as e:
68+ logger.warning('Failed to open the control panel: %s' % e)
69
70
71 class Messaging(AbstractMessaging):
72
73=== modified file 'ubuntuone/platform/sync_menu/linux.py'
74--- ubuntuone/platform/sync_menu/linux.py 2012-09-28 11:57:39 +0000
75+++ ubuntuone/platform/sync_menu/linux.py 2012-10-01 14:46:19 +0000
76@@ -140,7 +140,10 @@
77
78 def open_control_panel(self, *args):
79 """Open the Ubuntu One Control Panel."""
80- glib.spawn_command_line_async('ubuntuone-installer')
81+ try:
82+ glib.spawn_command_line_async('ubuntuone-control-panel-qt')
83+ except glib.GError as e:
84+ logger.warning('Failed to open the control panel: %s.' % e)
85
86 def open_go_to_web(self, *args):
87 """Open the Ubunto One Help Page"""

Subscribers

People subscribed via source and target branches