Merge ~ahasenack/ubuntu/+source/update-notifier:groovy-update-notifier-esm-aware into ubuntu/+source/update-notifier:ubuntu/devel

Proposed by Andreas Hasenack
Status: Merged
Approved by: Andreas Hasenack
Approved revision: edc979eddff19888872f0fd0aee865c58ffb9960
Merged at revision: edc979eddff19888872f0fd0aee865c58ffb9960
Proposed branch: ~ahasenack/ubuntu/+source/update-notifier:groovy-update-notifier-esm-aware
Merge into: ubuntu/+source/update-notifier:ubuntu/devel
Diff against target: 69 lines (+18/-4)
2 files modified
data/apt_check.py (+7/-4)
debian/changelog (+11/-0)
Reviewer Review Type Date Requested Status
Bryce Harrington (community) Approve
Canonical Server Core Reviewers Pending
Review via email: mp+385425@code.launchpad.net

Description of the change

groovy has no ESM yet, but we want to SRU this fix all the way back to trusty and groovy is the first step.

I'm not updating lp:update-notifier because there is some disagreement whether it should be in bzr or git, and both are already out of date when compared to what is in groovy.

DEP8 tests pass:
(...)
Ran 18 tests in 3.221s

OK
autopkgtest [17:25:24]: test nose-tests: -----------------------]
autopkgtest [17:25:25]: test nose-tests: - - - - - - - - - - results - - - - - - - - - -
nose-tests PASS
autopkgtest [17:25:25]: @@@@@@@@@@@@@@@@@@@@ summary
nose-tests PASS

real 6m56,566s

To post a comment you must log in.
Revision history for this message
Bryce Harrington (bryce) wrote :

LGTM.

Just a suggestion, but you may also want to mention in the changelog that UbuntuESMApps is being differentiated from UbuntuESM. Not sure how to phrase that in a non-confusing way, but that seems like a notable change. At first glance, I thought this was squashing two unrelated changes.

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Good point, I overlooked that

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Tagging and uploading edc979eddff19888872f0fd0aee865c58ffb9960

$ git push pkg upload/3.192.32
Enumerating objects: 15, done.
Counting objects: 100% (15/15), done.
Delta compression using up to 4 threads
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 1.43 KiB | 121.00 KiB/s, done.
Total 10 (delta 7), reused 0 (delta 0)
To ssh://git.launchpad.net/ubuntu/+source/update-notifier
 * [new tag] upload/3.192.32 -> upload/3.192.32

$ dput ubuntu ../update-notifier_3.192.32_source.changes
Checking signature on .changes
gpg: ../update-notifier_3.192.32_source.changes: Valid signature from AC983EB5BF6BCBA9
Checking signature on .dsc
gpg: ../update-notifier_3.192.32.dsc: Valid signature from AC983EB5BF6BCBA9
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading update-notifier_3.192.32.dsc: done.
  Uploading update-notifier_3.192.32.tar.xz: done.
  Uploading update-notifier_3.192.32_source.buildinfo: done.
  Uploading update-notifier_3.192.32_source.changes: done.
Successfully uploaded packages.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/data/apt_check.py b/data/apt_check.py
2index 4051460..ed729c9 100755
3--- a/data/apt_check.py
4+++ b/data/apt_check.py
5@@ -16,6 +16,8 @@ DISTRO = subprocess.check_output(
6 ["lsb_release", "-c", "-s"],
7 universal_newlines=True).strip()
8
9+ESM_ORIGINS = ("UbuntuESM", "UbuntuESMApps")
10+
11
12 def _(msg):
13 return gettext.dgettext("update-notifier", msg)
14@@ -45,7 +47,8 @@ def saveDistUpgrade(cache, depcache):
15 def isSecurityUpgrade(ver):
16 " check if the given version is a security update (or masks one) "
17 security_pockets = [("Ubuntu", "%s-security" % DISTRO),
18- ("UbuntuESM", "%s-security" % DISTRO),
19+ ("UbuntuESM", "%s-infra-security" % DISTRO),
20+ ("UbuntuESMApps", "%s-apps-security" % DISTRO),
21 ("gNewSense", "%s-security" % DISTRO),
22 ("Debian", "%s-updates" % DISTRO)]
23 for (file, index) in ver.file_list:
24@@ -58,7 +61,7 @@ def isSecurityUpgrade(ver):
25 def isESMUpgrade(ver):
26 " check if the given version is a security update (or masks one) "
27 for (file, index) in ver.file_list:
28- if file.origin == "UbuntuESM" and file.archive.startswith(DISTRO):
29+ if file.origin in ESM_ORIGINS and file.archive.startswith(DISTRO):
30 return True
31 return False
32
33@@ -152,7 +155,7 @@ def has_disabled_esm_security_update(depcache, pkg):
34 break
35
36 for (file, index) in ver.file_list:
37- if (file.origin == "UbuntuESM" and file.archive.startswith(DISTRO)
38+ if (file.origin in ESM_ORIGINS and file.archive.startswith(DISTRO)
39 and depcache.policy.get_priority(file) == -32768):
40 return True
41 return False
42@@ -202,7 +205,7 @@ def run(options=None):
43 # first place.
44 have_esm = None # None == does not exist
45 for file in cache.file_list:
46- if file.origin == "UbuntuESM" and file.archive.startswith(DISTRO):
47+ if file.origin in ESM_ORIGINS and file.archive.startswith(DISTRO):
48 # In case of multiple ESM repos, one enabled is sufficient.
49 if depcache.policy.get_priority(file) == -32768:
50 # We found a disabled ESM repository, but we'll only count
51diff --git a/debian/changelog b/debian/changelog
52index 9850622..f681b72 100644
53--- a/debian/changelog
54+++ b/debian/changelog
55@@ -1,3 +1,14 @@
56+update-notifier (3.192.32) groovy; urgency=medium
57+
58+ [ Chad Smith ]
59+ * data/apt_check.py: Update ESM security pockets names (LP: #1881632)
60+ - the UbuntuESM pocket was renamed from <distro>-security to
61+ <distro>-infra-security
62+ - new origin UbuntuESMApps, with a corresponding pocket of
63+ <distro>-apps-security
64+
65+ -- Andreas Hasenack <andreas@canonical.com> Fri, 12 Jun 2020 11:21:25 -0300
66+
67 update-notifier (3.192.31) groovy; urgency=medium
68
69 * Update debian/tests/control to depend on pyflakes3 not pyflakes.

Subscribers

People subscribed via source and target branches