Merge lp:~mvo/ubuntuone-installer/lp853060 into lp:ubuntuone-installer

Proposed by Michael Vogt
Status: Rejected
Rejected by: dobey
Proposed branch: lp:~mvo/ubuntuone-installer/lp853060
Merge into: lp:ubuntuone-installer
Diff against target: 23 lines (+4/-2)
1 file modified
ubuntuone/installer/gui.py (+4/-2)
To merge this branch: bzr merge lp:~mvo/ubuntuone-installer/lp853060
Reviewer Review Type Date Requested Status
dobey (community) Needs Information
Review via email: mp+105247@code.launchpad.net

Description of the change

This should fix bug #853060 by checking for the exit-status. Someone will have to test it.

To post a comment you must log in.
lp:~mvo/ubuntuone-installer/lp853060 updated
27. By Michael Vogt

empty --fixes commit for #853060

Revision history for this message
dobey (dobey) wrote :

I'm trying to reproduce the problem, but only get a working result. Would like to understand what is going wrong exactly for people so we can have a proper test case for regression testing.

review: Needs Information
Revision history for this message
Michael Vogt (mvo) wrote :

As was pointed out, this needs some more work to actually show a proper error dialog.
aptdaemon does support this via ready-made gtk/gtk3 error dialogs that we need to wire in.

Revision history for this message
dobey (dobey) wrote :

Rejected this one, as I have a branch in the works which adds error handling and such.

Unmerged revisions

27. By Michael Vogt

empty --fixes commit for #853060

26. By Michael Vogt

ubuntuone/installer/gui.py: check for exit-status before launching CONTROL_PANEL_COMMAND

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntuone/installer/gui.py'
2--- ubuntuone/installer/gui.py 2012-03-13 20:24:31 +0000
3+++ ubuntuone/installer/gui.py 2012-05-09 18:42:17 +0000
4@@ -16,6 +16,7 @@
5 """The GUI of the Ubuntu One Installer."""
6
7 import aptdaemon.gtk3widgets as aptgtk
8+import aptdaemon.enums
9 import aptdaemon.client as aptclient
10 import gettext
11 import os
12@@ -369,8 +370,9 @@
13 """Install the packages."""
14 self.__apt_progress.set_fraction(0.0)
15
16- def finished(*args, **kwargs):
17- GLib.spawn_command_line_async(CONTROL_PANEL_COMMAND)
18+ def finished(trans, exit_status):
19+ if exit_status == aptdaemon.enums.EXIT_SUCCESS:
20+ GLib.spawn_command_line_async(CONTROL_PANEL_COMMAND)
21 Gtk.main_quit()
22
23 transaction = yield self.client.install_packages(

Subscribers

People subscribed via source and target branches