~ubuntu-core-dev/update-manager/main

« back to all changes in this revision

Viewing changes to UpdateManager/backend/InstallBackendSynaptic.py

  • Committer: Michael Vogt
  • Date: 2011-07-08 07:46:54 UTC
  • mfrom: (2146.2.16 pygi)
  • Revision ID: michael.vogt@ubuntu.com-20110708074654-nbcspqmsrlbxc6p0
merged from the pygi branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
import tempfile
8
8
from gettext import gettext as _
9
9
 
10
 
import gobject
 
10
from gi.repository import GObject
11
11
 
12
12
from UpdateManager.backend import InstallBackend
13
13
 
27
27
               "--non-interactive", "--parent-window-id",
28
28
               "%s" % self.window_main.window.xid ]
29
29
        cmd.extend(opt)
30
 
        flags = gobject.SPAWN_DO_NOT_REAP_CHILD
31
 
        (pid, stdin, stdout, stderr) = gobject.spawn_async(cmd, flags=flags)
32
 
        gobject.child_watch_add(pid, self._on_synaptic_exit, (action, tempf))
 
30
        flags = GObject.SPAWN_DO_NOT_REAP_CHILD
 
31
        (pid, stdin, stdout, stderr) = GObject.spawn_async(cmd, flags=flags)
 
32
        GObject.child_watch_add(pid, self._on_synaptic_exit, (action, tempf))
33
33
 
34
34
    def _on_synaptic_exit(self, pid, condition, data):
35
35
        action, tempf = data