~darkxst/apturl/icons

« back to all changes in this revision

Viewing changes to AptUrl/gtk/backend/InstallBackendSynaptic.py

  • Committer: Martin Pitt
  • Date: 2013-04-09 11:21:31 UTC
  • Revision ID: martin.pitt@canonical.com-20130409112131-49bncbhs17d6d8t2
* AptUrl/gtk/backend/__init__.py: Drop "action-done" signal definition;
  update-manager's GTK backend already defines it with different arguments,
  so this is ineffective and confusing.
* AptUrl/gtk/GtkUI.py, _on_backend_done(): Add additional error signal
  arguments, as defined by update-manager's backend.
* AptUrl/gtk/backend/InstallBackend{Aptdaemon,Synaptic}.py: Call action-done
  signal with error arguments. (LP: #1103024)

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        action, tempf = data
40
40
        if tempf:
41
41
            tempf.close()
42
 
        self.emit("action-done", action, True, os.WEXITSTATUS(condition) == 0)
 
42
        self.emit("action-done", action, True, os.WEXITSTATUS(condition) == 0, None, None)
43
43
 
44
44
    def update(self):
45
45
        opt = ["--update-at-startup"]