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

« back to all changes in this revision

Viewing changes to UpdateManager/UpdateManager.py

  • Committer: Sebastien Bacher
  • Date: 2023-01-26 10:30:14 UTC
  • Revision ID: seb128@ubuntu.com-20230126103014-3926jc0ymovt9q0w
Update of the parsing for pro client changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
    def _get_ua_security_status(self):
274
274
        self.ua_security_packages = []
275
275
        try:
276
 
            p = subprocess.Popen(['ua', 'security-status', '--format=json'],
 
276
            p = subprocess.Popen(['pro', 'security-status', '--format=json'],
277
277
                                 stdout=subprocess.PIPE)
278
278
        except OSError:
279
279
            pass
286
286
            for package in s.get('packages', []):
287
287
                status = package.get('status', '')
288
288
                if status == 'pending_attach':
289
 
                    name = package.get('name', '')
 
289
                    name = package.get('package', '')
290
290
                    version = package.get('version', '')
291
291
                    size = package.get('download_size', 0)
292
292
                    self.ua_security_packages.append((name, version, size))