Merge lp:~vorlon/ubuntu-archive-publishing/lubuntu-next-support-fixup into lp:ubuntu-archive-publishing

Proposed by Steve Langasek
Status: Merged
Merged at revision: 104
Proposed branch: lp:~vorlon/ubuntu-archive-publishing/lubuntu-next-support-fixup
Merge into: lp:ubuntu-archive-publishing
Diff against target: 56 lines (+7/-5)
1 file modified
scripts/maintenance-check.py (+7/-5)
To merge this branch: bzr merge lp:~vorlon/ubuntu-archive-publishing/lubuntu-next-support-fixup
Reviewer Review Type Date Requested Status
Simon Quigley (community) Approve
Ubuntu Package Archive Administrators Pending
Review via email: mp+344358@code.launchpad.net

Commit message

take 2 of fixing the lubuntu seed supported fields

To post a comment you must log in.
Revision history for this message
Simon Quigley (tsimonq2) wrote :

LGTM, iff it works.

review: Approve
104. By Steve Langasek

In order to special-case 'all' to not override previously-seen support lengths, we also need to process ubuntu (longest-supported) before any other flavors and should process lubuntu last.

105. By Steve Langasek

pull the main-but-unseeded default from SUPPORTED_TIMEFRAME explicitly, so that it always maps to Ubuntu support length instead of another flavor.

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 2018-04-12 17:11:31 +0000
3+++ scripts/maintenance-check.py 2018-04-26 05:56:56 +0000
4@@ -229,8 +229,8 @@
5 SUPPORT_TIMEFRAME_SHORT = [
6 ("3y", UbuntuMaintenance.SERVER_SEEDS),
7 ("3y", UbuntuMaintenance.DESKTOP_SEEDS),
8- ("3y", UbuntuMaintenance.SUPPORTED_SEEDS),
9 ("9m", NON_LTS_SEEDS),
10+ ("3y", UbuntuMaintenance.SUPPORTED_SEEDS),
11 ]
12
13 # on an LTS this is significant, it defines what names get LTS support
14@@ -240,11 +240,11 @@
15
16 DISTRO_NAMES_SHORT = [
17 "kubuntu",
18- "lubuntu",
19 "ubuntu-budgie",
20 "ubuntu-mate",
21 "ubuntukylin",
22 "xubuntu",
23+ "lubuntu",
24 ]
25
26 # Names of the distribution releases that are not supported by this
27@@ -466,7 +466,8 @@
28 pkg_support_time[pkg] = timeframe
29 else:
30 old_timeframe = pkg_support_time[pkg]
31- if compare_support_level(old_timeframe, timeframe) < 0:
32+ if (seed != 'all'
33+ and compare_support_level(old_timeframe, timeframe) < 0):
34 logging.debug("overwriting %s from %s to %s" % (
35 pkg, old_timeframe, timeframe))
36 pkg_support_time[pkg] = timeframe
37@@ -520,8 +521,8 @@
38 # go over the distros we need to check
39 pkg_support_time = {}
40 for names, support_timeframe in (
41+ (ubuntu_maintenance.DISTRO_NAMES, ubuntu_maintenance.SUPPORT_TIMEFRAME),
42 (ubuntu_maintenance.DISTRO_NAMES_SHORT, ubuntu_maintenance.SUPPORT_TIMEFRAME_SHORT),
43- (ubuntu_maintenance.DISTRO_NAMES, ubuntu_maintenance.SUPPORT_TIMEFRAME),
44 ):
45 for name in names:
46 # get basic structure file
47@@ -551,7 +552,8 @@
48 if ":" in pkg.name:
49 continue
50 if not pkg.name in pkg_support_time:
51- pkg_support_time[pkg.name] = support_timeframe[-1][0]
52+ pkg_support_time[pkg.name] = \
53+ ubuntu_maintenance.SUPPORT_TIMEFRAME[-1][0]
54 logging.warn(
55 "add package in main but not in seeds %s with %s" % (
56 pkg.name, pkg_support_time[pkg.name]))

Subscribers

People subscribed via source and target branches