~brian-murray/update-manager/no-i386-upgrade

« back to all changes in this revision

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

  • Committer: Balint Reczey
  • Date: 2018-09-27 14:38:14 UTC
  • mfrom: (2840.1.2 master)
  • Revision ID: balint.reczey@canonical.com-20180927143814-5fvlc75l5cze5269
MergeĀ lp:~rbalint/update-manager/fix-pep8-cosmic

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-') and
72
 
                    not pkg.name.endswith('-base') and
73
 
                    cache._depcache.IsAutoInstalled(pkg._pkg) and
74
 
                    pkg.is_installed):
 
71
            if (pkg.name.startswith('language-pack-') \
 
72
                    and not pkg.name.endswith('-base') \
 
73
                    and cache._depcache.IsAutoInstalled(pkg._pkg) \
 
74
                    and pkg.is_installed):
75
75
                # Then...
76
76
                logging.debug("setting '%s' to manual installed" % pkg.name)
77
77
                yield ManualInstallCruft(pkg)