~rbalint/update-manager/lp-1795898-upgrade-workaround

« back to all changes in this revision

Viewing changes to janitor/plugincore/plugins/langpack_manual_plugin.py

  • Committer: Balint Reczey
  • Date: 2018-10-01 16:36:46 UTC
  • mfrom: (2841.1.2 master)
  • Revision ID: balint.reczey@canonical.com-20181001163646-u1vfm9jh3f8ih27h
Tags: 1:18.10.9
MergeĀ lp:~rbalint/update-manager/pep8-again

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        # language-support-* - we fix this here
69
69
        cache = self.app.apt_cache
70
70
        for pkg in cache:
71
 
            if (pkg.name.startswith('language-pack-') \
72
 
                    and not pkg.name.endswith('-base') \
73
 
                    and cache._depcache.IsAutoInstalled(pkg._pkg) \
 
71
            if (pkg.name.startswith('language-pack-')
 
72
                    and not pkg.name.endswith('-base')
 
73
                    and cache._depcache.IsAutoInstalled(pkg._pkg)
74
74
                    and pkg.is_installed):
75
75
                # Then...
76
76
                logging.debug("setting '%s' to manual installed" % pkg.name)