Merge lp:~xnox/ubuntu-archive-publishing/no-more-supported into lp:ubuntu-archive-publishing

Proposed by Dimitri John Ledkov
Status: Merged
Merged at revision: 111
Proposed branch: lp:~xnox/ubuntu-archive-publishing/no-more-supported
Merge into: lp:ubuntu-archive-publishing
Diff against target: 70 lines (+32/-19)
1 file modified
scripts/maintenance-check.py (+32/-19)
To merge this branch: bzr merge lp:~xnox/ubuntu-archive-publishing/no-more-supported
Reviewer Review Type Date Requested Status
Colin Watson Approve
Review via email: mp+382444@code.launchpad.net

Commit message

Drop Supported field, no longer accurate and thus obsolete

With introduction of new support subscriptions the support status and length of packages at initial release publication are not known. We do not modify release pocket, and thus when a release gets extended to beyond 5y for some or all packages, the Supported field stops being accurate.

Stop publishing the confusing Supported field.

A tool that reports correct security support status will be provided soon, which reports correct status and does not use Supported field anymore.

Description of the change

Drop Supported field, no longer accurate and thus obsolete

With introduction of new support subscriptions the support status and length of packages at initial release publication are not known. We do not modify release pocket, and thus when a release gets extended to beyond 5y for some or all packages, the Supported field stops being accurate.

Stop publishing the confusing Supported field.

A tool that reports correct security support status will be provided soon, which reports correct status and does not use Supported field anymore.

To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Please review and land this, ubuntu-support-status tool has now been removed from Focal.

Revision history for this message
Colin Watson (cjwatson) :
review: Approve
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

$ ubuntu-security-status
5912 packages installed, of which:
2797 receive package updates with LTS until 4/2025
2846 could receive security updates with ESM Apps until 4/2030
   5 packages are from third parties
 264 packages are no longer available for download

Packages from third parties are not provided by the official Ubuntu
archive, for example packages from Personal Package Archives in
Launchpad.
For more information on the packages, run 'ubuntu-security-status
--thirdparty'.

Packages that are not available for download may be left over from a
previous release of Ubuntu, may have been installed directly from a
.deb file, or are from a source which has been disabled.
For more information on the packages, run 'ubuntu-security-status
--unavailable'.

Enable Extended Security Maintenance (ESM Apps) to get 1 security
update (so far) and enable coverage of 2846 packages.

This machine is not attached to an Ubuntu Advantage subscription.
See https://ubuntu.com/advantage

Is the new/replacement tool, which is working fine.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'scripts/maintenance-check.py'
2--- scripts/maintenance-check.py 2020-03-19 14:15:41 +0000
3+++ scripts/maintenance-check.py 2020-04-16 18:35:02 +0000
4@@ -247,20 +247,30 @@
5 "lubuntu",
6 ]
7
8-FocalUbuntuMaintenance = BionicUbuntuMaintenance
9-
10-# Names of the distribution releases that are not supported by this
11-# tool. All later versions are supported.
12-UNSUPPORTED_DISTRO_RELEASED = [
13- "dapper",
14- "edgy",
15- "feisty",
16- "gutsy",
17- "hardy",
18- "intrepid",
19- "jaunty",
20- "karmic",
21- ]
22+# Names of the distribution releases that are supported by this tool
23+# (lucid-eoan). Any later releases do not use Supported.
24+SUPPORTED_DISTRO_RELEASED = [
25+ "lucid",
26+ "maverick",
27+ "natty",
28+ "oneiric",
29+ "precise",
30+ "quantal",
31+ "raring",
32+ "saucy",
33+ "trusty",
34+ "utopic",
35+ "vivid",
36+ "wily",
37+ "xenial",
38+ "yakkety",
39+ "zesty",
40+ "artful",
41+ "bionic",
42+ "cosmic",
43+ "disco",
44+ "eoan"
45+]
46
47
48 # germinate output base directory
49@@ -494,13 +504,16 @@
50 (options, args) = parser.parse_args()
51
52 # init
53+ if len(args) == 0:
54+ logging.error("must specify dist")
55+ sys.exit(1)
56+
57 if len(args) > 0:
58 distro = args[0]
59- if distro in UNSUPPORTED_DISTRO_RELEASED:
60- logging.error("only lucid or later is supported")
61- sys.exit(1)
62- else:
63- distro = "lucid"
64+
65+ if distro not in SUPPORTED_DISTRO_RELEASED:
66+ logging.error("only lucid-eoan use Supported field")
67+ sys.exit(0)
68
69 # maintenance class to use
70 klass = globals().get("%sUbuntuMaintenance" % distro.capitalize())

Subscribers

People subscribed via source and target branches