~jr/ubuntu-release-upgrader-neon/trunk

« back to all changes in this revision

Viewing changes to do-release-upgrade

  • Committer: Jonathan Riddell
  • Date: 2018-08-24 15:02:58 UTC
  • Revision ID: jriddell@ubuntu.com-20180824150258-jrwsu5emyoe3y0i8
stop the packagekit service more so it can no longer be dbus activated

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
    os.execv("/usr/bin/pkexec", ["pkexec"] + sys.argv)
167
167
 
168
168
  subprocess.run(['systemctl', 'stop', 'packagekit'])
 
169
  subprocess.run(['systemctl', 'mask', 'packagekit.service'])
 
170
  subprocess.run(['systemctl', 'mask', 'packagekit.socket'])
169
171
  fetcher = get_fetcher(options.frontend, m.new_dist, options.data_dir)
170
172
  fetcher.run_options += ["--mode=%s" % options.mode,
171
173
                          "--frontend=%s" % options.frontend,
174
176
    fetcher.run_options.append("--devel-release")
175
177
  fetcher.run()
176
178
  subprocess.run(['systemctl', 'start', 'packagekit'])
 
179
  subprocess.run(['systemctl', 'unmask', 'packagekit.service'])
 
180
  subprocess.run(['systemctl', 'unmask', 'packagekit.socket'])