~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to data/backend_helper.py

  • Committer: Michael Vogt
  • Date: 2011-08-10 13:54:37 UTC
  • Revision ID: michael.vogt@ubuntu.com-20110810135437-u5mpghsheywb0ysv
data/backend_helper.py: fix synaptic call

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
import sys
9
9
 
10
10
GKSU = ["/usr/bin/gksu"]
11
 
SYNPATIC_DESKTOP = ["--desktop", "/usr/share/applications/synaptic.desktop", 
 
11
SYNPATIC_DESKTOP = ["--desktop", 
 
12
                    "/usr/share/applications/synaptic.desktop", 
12
13
                    "--"]
13
14
HAVE_APTDAEMON = False
14
15
try:
40
41
    
41
42
def _install_all_updates_gksu():
42
43
    cmd = GKSU + SYNPATIC_DESKTOP + [ "/usr/sbin/synaptic ",
43
 
                                    "--dist-upgrade-mode",
44
 
                                    "--non-interactive",
45
 
                                    "--hide-main-window",
46
 
                                    "-o Synaptic::AskRelated=true",
47
 
                                    ]
 
44
                                      "--dist-upgrade-mode",
 
45
                                      "--non-interactive",
 
46
                                      "--hide-main-window",
 
47
                                      "-o", "Synaptic::AskRelated=true",
 
48
                                      ]
48
49
    return subprocess.call(cmd)
49
50
 
50
51
def install_all_updates():