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

« back to all changes in this revision

Viewing changes to data/apt_check.py

  • Committer: Adam Conrad
  • Date: 2019-04-13 10:42:38 UTC
  • Revision ID: adconrad@0c3.net-20190413104238-2oqp8fzmgmjt2gaz
Tags: 3.192.18
data/apt_check.py: Fix dep8 line length issues.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
    if disabled_esm_updates > 0:
113
113
        outstream.write("\n")
114
114
        outstream.write(gettext.dngettext("update-notifier",
115
 
                                          "Enable ESM to receive %i additional "
116
 
                                          "security update.",
117
 
                                          "Enable ESM to receive %i additional "
118
 
                                          "security updates.",
 
115
                                          "Enable ESM to receive %i "
 
116
                                          "additional security update.",
 
117
                                          "Enable ESM to receive %i "
 
118
                                          "additional security updates.",
119
119
                                          disabled_esm_updates) %
120
120
                        disabled_esm_updates)
121
121
        outstream.write("\n")
188
188
    for file in cache.file_list:
189
189
        if file.origin == "UbuntuESM" and file.archive.startswith(DISTRO):
190
190
            # In case of multiple ESM repos, one enabled is sufficient.
191
 
            if have_esm is None and depcache.policy.get_priority(file) == -32768:
 
191
            if (have_esm is None
 
192
                    and depcache.policy.get_priority(file) == -32768):
192
193
                have_esm = False
193
194
            else:
194
195
                have_esm = True