Merge ~alexmurray/ubuntu-cve-tracker:die-partner-die into ubuntu-cve-tracker:master

Proposed by Alex Murray
Status: Merged
Merged at revision: 058e1f911c7dd313a2f39b421ba1a5bf7c6148a7
Proposed branch: ~alexmurray/ubuntu-cve-tracker:die-partner-die
Merge into: ubuntu-cve-tracker:master
Diff against target: 1051 lines (+105/-272)
16 files modified
.launchpad.yaml (+1/-3)
README (+1/-5)
scripts/check-syntax (+1/-4)
scripts/cve-alert.sh (+1/-1)
scripts/cve_lib.py (+38/-61)
scripts/cve_packages (+3/-14)
scripts/html-report (+3/-11)
scripts/html/top/index.html (+0/-2)
scripts/html/top/priority.html (+0/-1)
scripts/html_export.py (+0/-1)
scripts/monthly-report (+0/-3)
scripts/packages-mirror (+50/-100)
scripts/report-todo-numbers (+1/-6)
scripts/report-todo-plot (+1/-1)
scripts/source_map.py (+3/-48)
scripts/ubuntu-table (+2/-11)
Reviewer Review Type Date Requested Status
Steve Beattie Approve
Marc Deslauriers Approve
Review via email: mp+444044@code.launchpad.net

Description of the change

The partner mirror hasn't been used or supported for a very long time so let's not try and pretend anymore. Remove all references to it from UCT. Hopefully this fixes CI too since it seems the partner mirror is not available on the internal archive mirror either anymore for bionic since it went into ESM.

To post a comment you must log in.
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

The only thing that sticks out is this:

+ global esm_warned

The rest LGTM. Thanks!

Revision history for this message
Alex Murray (alexmurray) wrote :

the global esm_warned was to fix pyflakes3 complaining about this variable - since I touched check-syntax pyflakes3 gets run against it in the pre-commit hook - this is needed to indicate we are using the global variable inside this function.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

> the global esm_warned was to fix pyflakes3 complaining about this variable -
> since I touched check-syntax pyflakes3 gets run against it in the pre-commit
> hook - this is needed to indicate we are using the global variable inside this
> function.

Ah! Great :)

review: Approve
Revision history for this message
Seth Arnold (seth-arnold) wrote :

awesome :) thanks for tackling this!

Revision history for this message
Steve Beattie (sbeattie) wrote :

Thanks! I also removed the setup for partner in the ubuntu-security-tools:build-tools/build-sources-list script (though there's more cleanup that needs to be done there).

This also fixes the current lpci check-syntax breakage, so yay!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/.launchpad.yaml b/.launchpad.yaml
2index cf00cb8..b2962f9 100644
3--- a/.launchpad.yaml
4+++ b/.launchpad.yaml
5@@ -59,9 +59,7 @@ jobs:
6 # for source_map
7 echo plb_authentication=/dev/null > ~/.ubuntu-cve-tracker.conf
8 echo "packages_mirror=$HOME/mirrors/ubuntu/" >> ~/.ubuntu-cve-tracker.conf
9- for mirror in debian partner; do
10- echo "${mirror}_mirror=$HOME/mirrors/${mirror}/" >> ~/.ubuntu-cve-tracker.conf
11- done
12+ echo "debian_mirror=$HOME/mirrors/debian/" >> ~/.ubuntu-cve-tracker.conf
13 echo "Setting up packages-mirror..."
14 # use wget for packages-mirror since rsync is not accessible in lp
15 # builders - also invoke with -v since this seems to make downloading more
16diff --git a/README b/README
17index fc18a69..6603d53 100644
18--- a/README
19+++ b/README
20@@ -64,7 +64,6 @@ The following values need to be configured in ~/.ubuntu-cve-tracker.conf:
21 database (sis-generate-usn).
22 - usn_db_copy: path to copy of master USN database, used when creating
23 a template for a USN where "N" != 1 (sis-generate-usn).
24-- partner_mirror: same as packages_mirror, but for the partner repo.
25 - debian_mirror: same as packages_mirror, but for Debian testing repo.
26 - mitre_loc: where to download the MITRE CVE database
27 - nvd_loc: where to download the NVD database
28@@ -441,9 +440,6 @@ Show all active CVEs for supported (main) packages:
29 Number of active CVEs that are in main:
30 ./scripts/ubuntu-table --supported 2>/dev/null | grep SUPPORTED | wc -l
31
32-Show all active CVEs for partner packages:
33-./scripts/ubuntu-table --supported 2>/dev/null | grep PARTNER
34-
35 Show all out-of-sync CVEs for the devel release:
36 ./scripts/ubuntu-table --supported | grep 'out of sync' | awk '{if ($8 == "needed*" || $8 == "needs-triage*") { print $0 }}'
37
38@@ -477,7 +473,7 @@ See all bugs with priority of medium or higher:
39 See a listing of packages with number of CVEs attached to them, weighted by
40 CVE priority:
41 ./scripts/cve_packages
42-./scripts/cve_packages -m (just supported (main, restricted and partner))
43+./scripts/cve_packages -m (just supported (main and restricted))
44 ./scripts/cve_packages -u (just unsupported (universe and multiverse))
45 ./scripts/cve_packages -t (just totals)
46 ./scripts/cve_packages -a (with assignees)
47diff --git a/scripts/check-syntax b/scripts/check-syntax
48index 92c3606..9d701e3 100755
49--- a/scripts/check-syntax
50+++ b/scripts/check-syntax
51@@ -589,10 +589,6 @@ def check_cve(cve):
52 # Skip DNE's
53 if state == "DNE":
54 if pkg in source[rel]:
55- # TODO: remove this when partner archive is back in sync
56- # sigh, partner archive mirrors are out of date since removing sun-java6
57- if pkg == "sun-java6" and source[rel][pkg]["section"] == "partner":
58- continue
59 print(
60 "%s: %d: package '%s' DOES exist in '%s'"
61 % (filename, linenum, pkg, rel),
62@@ -685,6 +681,7 @@ def check_cve(cve):
63 released = details[1]
64 # XXX 'version' existence check should not be needed
65 if "version" not in source[rel][pkg]:
66+ global esm_warned
67 if not esm_warned:
68 print(
69 "%s: %d: unable to lookup source version for %s in %s"
70diff --git a/scripts/cve-alert.sh b/scripts/cve-alert.sh
71index 417bc4c..84d761e 100755
72--- a/scripts/cve-alert.sh
73+++ b/scripts/cve-alert.sh
74@@ -9,7 +9,7 @@ set -e
75 alert_threshold=10
76 alert_high_threshold=0
77 alert_community_threshold=0
78-alert_ignore="[[:blank:]]linux:|linux-lts-|linux-hwe|linux-ti-|linux-raspi|linux-snapdragon|linux-azure|linux-aws|linux-bluefield|linux-dell|linux-gcp|linux-gke|linux-ibm|linux-intel|linux-iot|linux-lowlatency|linux-kvm|linux-oem|linux-oracle|linux-riscv|linux-xilinx-zynqmp|qtwebkit-source|qtwebkit-opensource-src|webkit:|webkitgtk|oxide-qt|PARTNER"
79+alert_ignore="[[:blank:]]linux:|linux-lts-|linux-hwe|linux-ti-|linux-raspi|linux-snapdragon|linux-azure|linux-aws|linux-bluefield|linux-dell|linux-gcp|linux-gke|linux-ibm|linux-intel|linux-iot|linux-lowlatency|linux-kvm|linux-oem|linux-oracle|linux-riscv|linux-xilinx-zynqmp|qtwebkit-source|qtwebkit-opensource-src|webkit:|webkitgtk|oxide-qt"
80 alert_high_ignore="linux-hwe-edge:|linux-gcp-edge:|linux-azure-edge:"
81 # important universe packages that we'd like to have up to date
82 alert_community="adobe-flashplugin|chromium-browser|docker\.io|flashplugin-nonfree"
83diff --git a/scripts/cve_lib.py b/scripts/cve_lib.py
84index 00d6075..4f5f7b8 100755
85--- a/scripts/cve_lib.py
86+++ b/scripts/cve_lib.py
87@@ -277,7 +277,7 @@ subprojects = {
88 },
89 "ubuntu/warty": {
90 "eol": True,
91- "components": ["main", "restricted", "universe", "multiverse", "partner"],
92+ "components": ["main", "restricted", "universe", "multiverse"],
93 "name": "Ubuntu 4.10",
94 "version": 4.10,
95 "codename": "Warty Warthog",
96@@ -287,7 +287,7 @@ subprojects = {
97 },
98 "ubuntu/hoary": {
99 "eol": True,
100- "components": ["main", "restricted", "universe", "multiverse", "partner"],
101+ "components": ["main", "restricted", "universe", "multiverse"],
102 "name": "Ubuntu 5.04",
103 "version": 5.04,
104 "codename": "Hoary Hedgehog",
105@@ -297,7 +297,7 @@ subprojects = {
106 },
107 "ubuntu/breezy": {
108 "eol": True,
109- "components": ["main", "restricted", "universe", "multiverse", "partner"],
110+ "components": ["main", "restricted", "universe", "multiverse"],
111 "name": "Ubuntu 5.10",
112 "version": 5.10,
113 "codename": "Breezy Badger",
114@@ -307,7 +307,7 @@ subprojects = {
115 },
116 "ubuntu/dapper": {
117 "eol": True,
118- "components": ["main", "restricted", "universe", "multiverse", "partner"],
119+ "components": ["main", "restricted", "universe", "multiverse"],
120 "name": "Ubuntu 6.06 LTS",
121 "version": 6.06,
122 "codename": "Dapper Drake",
123@@ -317,7 +317,7 @@ subprojects = {
124 },
125 "ubuntu/edgy": {
126 "eol": True,
127- "components": ["main", "restricted", "universe", "multiverse", "partner"],
128+ "components": ["main", "restricted", "universe", "multiverse"],
129 "name": "Ubuntu 6.10",
130 "version": 6.10,
131 "codename": "Edgy Eft",
132@@ -327,7 +327,7 @@ subprojects = {
133 },
134 "ubuntu/feisty": {
135 "eol": True,
136- "components": ["main", "restricted", "universe", "multiverse", "partner"],
137+ "components": ["main", "restricted", "universe", "multiverse"],
138 "name": "Ubuntu 7.04",
139 "version": 7.04,
140 "codename": "Feisty Fawn",
141@@ -337,7 +337,7 @@ subprojects = {
142 },
143 "ubuntu/gutsy": {
144 "eol": True,
145- "components": ["main", "restricted", "universe", "multiverse", "partner"],
146+ "components": ["main", "restricted", "universe", "multiverse"],
147 "name": "Ubuntu 7.10",
148 "version": 7.10,
149 "codename": "Gutsy Gibbon",
150@@ -347,7 +347,7 @@ subprojects = {
151 },
152 "ubuntu/hardy": {
153 "eol": True,
154- "components": ["main", "restricted", "universe", "multiverse", "partner"],
155+ "components": ["main", "restricted", "universe", "multiverse"],
156 "name": "Ubuntu 8.04 LTS",
157 "version": 8.04,
158 "codename": "Hardy Heron",
159@@ -357,7 +357,7 @@ subprojects = {
160 },
161 "ubuntu/intrepid": {
162 "eol": True,
163- "components": ["main", "restricted", "universe", "multiverse", "partner"],
164+ "components": ["main", "restricted", "universe", "multiverse"],
165 "name": "Ubuntu 8.10",
166 "version": 8.10,
167 "codename": "Intrepid Ibex",
168@@ -367,7 +367,7 @@ subprojects = {
169 },
170 "ubuntu/jaunty": {
171 "eol": True,
172- "components": ["main", "restricted", "universe", "multiverse", "partner"],
173+ "components": ["main", "restricted", "universe", "multiverse"],
174 "name": "Ubuntu 9.04",
175 "version": 9.04,
176 "codename": "Jaunty Jackalope",
177@@ -377,7 +377,7 @@ subprojects = {
178 },
179 "ubuntu/karmic": {
180 "eol": True,
181- "components": ["main", "restricted", "universe", "multiverse", "partner"],
182+ "components": ["main", "restricted", "universe", "multiverse"],
183 "name": "Ubuntu 9.10",
184 "version": 9.10,
185 "codename": "Karmic Koala",
186@@ -387,7 +387,7 @@ subprojects = {
187 },
188 "ubuntu/lucid": {
189 "eol": True,
190- "components": ["main", "restricted", "universe", "multiverse", "partner"],
191+ "components": ["main", "restricted", "universe", "multiverse"],
192 "name": "Ubuntu 10.04 LTS",
193 "version": 10.04,
194 "codename": "Lucid Lynx",
195@@ -397,7 +397,7 @@ subprojects = {
196 },
197 "ubuntu/maverick": {
198 "eol": True,
199- "components": ["main", "restricted", "universe", "multiverse", "partner"],
200+ "components": ["main", "restricted", "universe", "multiverse"],
201 "name": "Ubuntu 10.10",
202 "version": 10.10,
203 "codename": "Maverick Meerkat",
204@@ -407,7 +407,7 @@ subprojects = {
205 },
206 "ubuntu/natty": {
207 "eol": True,
208- "components": ["main", "restricted", "universe", "multiverse", "partner"],
209+ "components": ["main", "restricted", "universe", "multiverse"],
210 "name": "Ubuntu 11.04",
211 "version": 11.04,
212 "codename": "Natty Narwhal",
213@@ -417,7 +417,7 @@ subprojects = {
214 },
215 "ubuntu/oneiric": {
216 "eol": True,
217- "components": ["main", "restricted", "universe", "multiverse", "partner"],
218+ "components": ["main", "restricted", "universe", "multiverse"],
219 "name": "Ubuntu 11.10",
220 "version": 11.10,
221 "codename": "Oneiric Ocelot",
222@@ -427,7 +427,7 @@ subprojects = {
223 },
224 "ubuntu/precise": {
225 "eol": True,
226- "components": ["main", "restricted", "universe", "multiverse", "partner"],
227+ "components": ["main", "restricted", "universe", "multiverse"],
228 "name": "Ubuntu 12.04 LTS",
229 "version": 12.04,
230 "codename": "Precise Pangolin",
231@@ -437,7 +437,7 @@ subprojects = {
232 },
233 "ubuntu/quantal": {
234 "eol": True,
235- "components": ["main", "restricted", "universe", "multiverse", "partner"],
236+ "components": ["main", "restricted", "universe", "multiverse"],
237 "name": "Ubuntu 12.10",
238 "version": 12.10,
239 "codename": "Quantal Quetzal",
240@@ -447,7 +447,7 @@ subprojects = {
241 },
242 "ubuntu/raring": {
243 "eol": True,
244- "components": ["main", "restricted", "universe", "multiverse", "partner"],
245+ "components": ["main", "restricted", "universe", "multiverse"],
246 "name": "Ubuntu 13.04",
247 "version": 13.04,
248 "codename": "Raring Ringtail",
249@@ -457,7 +457,7 @@ subprojects = {
250 },
251 "ubuntu/saucy": {
252 "eol": True,
253- "components": ["main", "restricted", "universe", "multiverse", "partner"],
254+ "components": ["main", "restricted", "universe", "multiverse"],
255 "name": "Ubuntu 13.10",
256 "version": 13.10,
257 "codename": "Saucy Salamander",
258@@ -467,7 +467,7 @@ subprojects = {
259 },
260 "ubuntu/trusty": {
261 "eol": True,
262- "components": ["main", "restricted", "universe", "multiverse", "partner"],
263+ "components": ["main", "restricted", "universe", "multiverse"],
264 "name": "Ubuntu 14.04 LTS",
265 "version": 14.04,
266 "codename": "Trusty Tahr",
267@@ -477,7 +477,7 @@ subprojects = {
268 },
269 "ubuntu/utopic": {
270 "eol": True,
271- "components": ["main", "restricted", "universe", "multiverse", "partner"],
272+ "components": ["main", "restricted", "universe", "multiverse"],
273 "name": "Ubuntu 14.10",
274 "version": 14.10,
275 "codename": "Utopic Unicorn",
276@@ -487,7 +487,7 @@ subprojects = {
277 },
278 "ubuntu/vivid": {
279 "eol": True,
280- "components": ["main", "restricted", "universe", "multiverse", "partner"],
281+ "components": ["main", "restricted", "universe", "multiverse"],
282 "name": "Ubuntu 15.04",
283 "version": 15.04,
284 "codename": "Vivid Vervet",
285@@ -497,7 +497,7 @@ subprojects = {
286 },
287 "ubuntu/wily": {
288 "eol": True,
289- "components": ["main", "restricted", "universe", "multiverse", "partner"],
290+ "components": ["main", "restricted", "universe", "multiverse"],
291 "name": "Ubuntu 15.10",
292 "version": 15.10,
293 "codename": "Wily Werewolf",
294@@ -507,7 +507,7 @@ subprojects = {
295 },
296 "ubuntu/xenial": {
297 "eol": True,
298- "components": ["main", "restricted", "universe", "multiverse", "partner"],
299+ "components": ["main", "restricted", "universe", "multiverse"],
300 "name": "Ubuntu 16.04 LTS",
301 "version": 16.04,
302 "codename": "Xenial Xerus",
303@@ -517,7 +517,7 @@ subprojects = {
304 },
305 "ubuntu/yakkety": {
306 "eol": True,
307- "components": ["main", "restricted", "universe", "multiverse", "partner"],
308+ "components": ["main", "restricted", "universe", "multiverse"],
309 "name": "Ubuntu 16.10",
310 "version": 16.10,
311 "codename": "Yakkety Yak",
312@@ -527,7 +527,7 @@ subprojects = {
313 },
314 "ubuntu/zesty": {
315 "eol": True,
316- "components": ["main", "restricted", "universe", "multiverse", "partner"],
317+ "components": ["main", "restricted", "universe", "multiverse"],
318 "name": "Ubuntu 17.04",
319 "version": 17.04,
320 "codename": "Zesty Zapus",
321@@ -537,7 +537,7 @@ subprojects = {
322 },
323 "ubuntu/artful": {
324 "eol": True,
325- "components": ["main", "restricted", "universe", "multiverse", "partner"],
326+ "components": ["main", "restricted", "universe", "multiverse"],
327 "name": "Ubuntu 17.10",
328 "version": 17.10,
329 "codename": "Artful Aardvark",
330@@ -548,7 +548,7 @@ subprojects = {
331 "ubuntu/bionic": {
332 "eol": True,
333 "oval": True,
334- "components": ["main", "restricted", "universe", "multiverse", "partner"],
335+ "components": ["main", "restricted", "universe", "multiverse"],
336 "name": "Ubuntu 18.04 LTS",
337 "version": 18.04,
338 "codename": "Bionic Beaver",
339@@ -558,7 +558,7 @@ subprojects = {
340 },
341 "ubuntu/cosmic": {
342 "eol": True,
343- "components": ["main", "restricted", "universe", "multiverse", "partner"],
344+ "components": ["main", "restricted", "universe", "multiverse"],
345 "name": "Ubuntu 18.10",
346 "version": 18.10,
347 "codename": "Cosmic Cuttlefish",
348@@ -568,7 +568,7 @@ subprojects = {
349 },
350 "ubuntu/disco": {
351 "eol": True,
352- "components": ["main", "restricted", "universe", "multiverse", "partner"],
353+ "components": ["main", "restricted", "universe", "multiverse"],
354 "name": "Ubuntu 19.04",
355 "version": 19.04,
356 "codename": "Disco Dingo",
357@@ -578,7 +578,7 @@ subprojects = {
358 },
359 "ubuntu/eoan": {
360 "eol": True,
361- "components": ["main", "restricted", "universe", "multiverse", "partner"],
362+ "components": ["main", "restricted", "universe", "multiverse"],
363 "name": "Ubuntu 19.10",
364 "version": 19.10,
365 "codename": "Eoan Ermine",
366@@ -589,7 +589,7 @@ subprojects = {
367 "ubuntu/focal": {
368 "eol": False,
369 "oval": True,
370- "components": ["main", "restricted", "universe", "multiverse", "partner"],
371+ "components": ["main", "restricted", "universe", "multiverse"],
372 "name": "Ubuntu 20.04 LTS",
373 "version": 20.04,
374 "codename": "Focal Fossa",
375@@ -599,7 +599,7 @@ subprojects = {
376 },
377 "ubuntu/groovy": {
378 "eol": True,
379- "components": ["main", "restricted", "universe", "multiverse", "partner"],
380+ "components": ["main", "restricted", "universe", "multiverse"],
381 "name": "Ubuntu 20.10",
382 "version": 20.10,
383 "codename": "Groovy Gorilla",
384@@ -609,7 +609,7 @@ subprojects = {
385 },
386 "ubuntu/hirsute": {
387 "eol": True,
388- "components": ["main", "restricted", "universe", "multiverse", "partner"],
389+ "components": ["main", "restricted", "universe", "multiverse"],
390 "name": "Ubuntu 21.04",
391 "version": 21.04,
392 "codename": "Hirsute Hippo",
393@@ -619,7 +619,7 @@ subprojects = {
394 },
395 "ubuntu/impish": {
396 "eol": True,
397- "components": ["main", "restricted", "universe", "multiverse", "partner"],
398+ "components": ["main", "restricted", "universe", "multiverse"],
399 "name": "Ubuntu 21.10",
400 "version": 21.10,
401 "codename": "Impish Indri",
402@@ -630,7 +630,7 @@ subprojects = {
403 "ubuntu/jammy": {
404 "eol": False,
405 "oval": True,
406- "components": ["main", "restricted", "universe", "multiverse", "partner"],
407+ "components": ["main", "restricted", "universe", "multiverse"],
408 "name": "Ubuntu 22.04 LTS",
409 "version": 22.04,
410 "codename": "Jammy Jellyfish",
411@@ -2572,21 +2572,8 @@ def any_supported(map, pkg, releases, cvedata):
412 return False
413
414
415-def is_partner(map, pkg, rel):
416- if rel in map and pkg in map[rel] and map[rel][pkg]['section'] == 'partner':
417- return True
418- return False
419-
420-
421-def any_partner(map, pkg, releases):
422- for rel in releases:
423- if is_partner(map, pkg, rel):
424- return True
425- return False
426-
427-
428 def is_universe(map, pkg, rel, cvedata):
429- if is_supported(map, pkg, rel, cvedata) or is_partner(map, pkg, rel):
430+ if is_supported(map, pkg, rel, cvedata):
431 return False
432 return True
433
434@@ -2598,14 +2585,6 @@ def any_universe(map, pkg, releases, cvedata):
435 return False
436
437
438-def release_has_partner(rel):
439- try:
440- _,_,_,details = get_subproject_details(rel)
441- return "partner" in details["components"]
442- except (ValueError, KeyError):
443- return False
444-
445-
446 def in_universe(map, pkg, rel, cve, cvedata):
447 if pkg in map[rel] and map[rel][pkg]['section'] == 'universe':
448 return True
449@@ -3008,7 +2987,7 @@ def git_delete_branch(branch, debug=False):
450 # cve_lib.check_mirror_timestamp(config)
451 # cve_lib.check_mirror_timestamp(config, mirror='packages_mirror')
452 def check_mirror_timestamp(config, mirror=None):
453- mirrors = ['packages_mirror', 'partner_mirror']
454+ mirrors = ['packages_mirror']
455 if mirror is not None:
456 mirrors = [mirror]
457 for m in mirrors:
458@@ -3017,8 +2996,6 @@ def check_mirror_timestamp(config, mirror=None):
459 a = config[m]
460
461 secs = 86400
462- if m == 'partner_mirror':
463- secs = secs * 7
464
465 if os.path.exists(a + ".timestamp") and time.mktime(time.localtime()) - os.stat(a + ".timestamp").st_mtime > secs:
466 print("WARNING: '%s' is %1.1f days older than %1.1f day(s). Please run '$UCT/scripts/packages-mirror -t'." %
467diff --git a/scripts/cve_packages b/scripts/cve_packages
468index d301464..da038c4 100755
469--- a/scripts/cve_packages
470+++ b/scripts/cve_packages
471@@ -86,7 +86,6 @@ deferred_packages = dict()
472 popularity = dict()
473 pockets = { 'supported' : dict(),
474 'universe' : dict(),
475- 'partner' : dict(),
476 'only_in_supported_overlay' : dict() }
477
478 points = { 'negligible' : 0,
479@@ -175,7 +174,6 @@ for cve in sorted(cves):
480 continue
481
482 supported = False
483- partner = False
484 universe = False
485 found = False
486 overlay = False
487@@ -219,18 +217,16 @@ for cve in sorted(cves):
488 found = True
489 if cve_lib.is_supported(map, namemap[pkg][r], r, cveinfo[cve]):
490 supported = True
491- if cve_lib.is_partner(map, namemap[pkg][r], r):
492- partner = True
493 if cve_lib.is_universe(map, namemap[pkg][r], r, cveinfo[cve]):
494 universe = True
495
496 if not found:
497 continue
498
499- if opt.only_supported and not supported and not partner:
500+ if opt.only_supported and not supported:
501 continue
502
503- if opt.not_supported and (supported or partner):
504+ if opt.not_supported and supported:
505 continue
506
507 if supported:
508@@ -245,11 +241,6 @@ for cve in sorted(cves):
509 else:
510 pockets['only_in_supported_overlay'][pkg] = 1
511
512- if partner:
513- if pkg in pockets['partner']:
514- pockets['partner'][pkg] += 1
515- else:
516- pockets['partner'][pkg] = 1
517 if universe:
518 if pkg in pockets['universe']:
519 pockets['universe'][pkg] += 1
520@@ -409,9 +400,7 @@ else:
521 sys.stdout.write(", %s %s" % (str(priorities[p][pkg]), p))
522
523 extra_info = []
524- if pkg in pockets['partner']:
525- extra_info.append('PARTNER')
526- elif pkg in pockets['supported']:
527+ if pkg in pockets['supported']:
528 if pkg in pockets['only_in_supported_overlay']:
529 extra_info.append('SUPPORTED-ONLY-OVERLAY')
530 else:
531diff --git a/scripts/html-report b/scripts/html-report
532index 63a15a5..70ea75c 100755
533--- a/scripts/html-report
534+++ b/scripts/html-report
535@@ -80,14 +80,11 @@ header() {
536 show="$2"
537 main_active=""
538 universe_active=""
539- partner_active=""
540
541 if [ "$show" = "main" ]; then
542 main_active="active ";
543 elif [ "$show" = "universe" ]; then
544 universe_active="active ";
545- elif [ "$show" = "partner" ]; then
546- partner_active="active ";
547 fi
548
549 cat > "$outfile" <<EOM
550@@ -129,7 +126,6 @@ header() {
551 <li class="nav-item"><a class="nav-link" href=".">Home</a></li>
552 <li class="nav-item"><a class="${main_active}nav-link" href="main.html">Main</a></li>
553 <li class="nav-item"><a class="${universe_active}nav-link" href="universe.html">Universe</a></li>
554- <li class="nav-item"><a class="${partner_active}nav-link" href="partner.html">Partner</a></li>
555 </ul>
556 </div><!--/.nav-collapse -->
557 </nav>
558@@ -152,7 +148,6 @@ This report is divided into the following sections:</p>
559 <ul class="style-none text-left">
560 <li><a href="main${suffix}.html">Main</a> (supported by Canonical Ltd)</li>
561 <li><a href="universe${suffix}.html">Universe</a> (supported by the Ubuntu community)</li>
562- <li><a href="partner${suffix}.html">Partner</a> (supported by upstream vendor)</li>
563 </ul>
564
565 <p class="text-left">See <a href="priority.html">Priority Color Key</a> for information about the significance of the colors on this page.</p>
566@@ -210,8 +205,8 @@ EOM
567 }
568
569 OUTPUT=$($ubuntu_table_exe --html --supported --no-retired $table_args)
570-#for show in main universe partner index
571-for show in main universe partner
572+#for show in main universe index
573+for show in main universe
574 do
575 outfile="${tmpdir}/${show}${suffix}.html"
576 header "$outfile" "$show"
577@@ -224,11 +219,8 @@ do
578 echo "<p class='note text-right'>* supported by Canonical Ltd</p>" >> "$outfile"
579 elif [ "$show" = "universe" ]; then
580 echo "<h3 class=\"text-center\">Universe</h3>" >> "$outfile"
581- echo "$OUTPUT" | egrep '(<table id="cves".*>|</table>|<thead.*>|</thead>|<tbody>|<tbody>|<th>|UNIVERSE)' | egrep -v 'PARTNER' | egrep -v "$embargoed" | sed -r 's#<td>[[:space:]]+(<p>[[:space:]]*[a-zA-Z0-9\-]*[[:space:]]*</p>[[:space:]]+)+</td>[[:space:]]+</tr>$#</tr>#' | sed -r 's#<th>Notes</th></tr>$#</tr>#' >> "$outfile"
582+ echo "$OUTPUT" | egrep '(<table id="cves".*>|</table>|<thead.*>|</thead>|<tbody>|<tbody>|<th>|UNIVERSE)' | egrep -v "$embargoed" | sed -r 's#<td>[[:space:]]+(<p>[[:space:]]*[a-zA-Z0-9\-]*[[:space:]]*</p>[[:space:]]+)+</td>[[:space:]]+</tr>$#</tr>#' | sed -r 's#<th>Notes</th></tr>$#</tr>#' >> "$outfile"
583 echo "<p class='note text-right'>* supported by Canonical Ltd</p>" >> "$outfile"
584- elif [ "$show" = "partner" ]; then
585- echo "<h3 class=\"text-center\">Partner</h3>" >> "$outfile"
586- echo "$OUTPUT" | egrep '(<table id="cves".*>|</table>|<thead.*>|</thead>|<tbody>|<tbody>|<th>|PARTNER)' | egrep -v "$embargoed"| sed -r 's#<td>[[:space:]]+(<p>[[:space:]]*[a-zA-Z0-9\-]*[[:space:]]*</p>[[:space:]]+)+</td>[[:space:]]+</tr>$#</tr>#' | sed -r 's#<th>Notes</th></tr>$#</tr>#' >> "$outfile"
587 fi
588
589 footer "$outfile"
590diff --git a/scripts/html/top/index.html b/scripts/html/top/index.html
591index 34047fd..e68dea1 100644
592--- a/scripts/html/top/index.html
593+++ b/scripts/html/top/index.html
594@@ -53,7 +53,6 @@
595 <li class="nav-item"><a class="active nav-link" href=".">Home</a></li>
596 <li class="nav-item"><a class="nav-link" href="main.html">Main</a></li>
597 <li class="nav-item"><a class="nav-link" href="universe.html">Universe</a></li>
598- <li class="nav-item"><a class="nav-link" href="partner.html">Partner</a></li>
599 </ul>
600 </div><!--/.nav-collapse -->
601 </nav>
602@@ -66,7 +65,6 @@
603
604 <div>
605 <p />Open <a href="main.html">CVEs in Main</a> archive (and <a href="main-released.html">without devel release</a>)
606- <p />Open <a href="partner.html">CVEs in Partner</a> archive (and <a href="partner-released.html">without devel release</a>)
607 <p />Open <a href="universe.html">CVEs in Universe</a> archive (and <a href="universe-released.html">without devel release</a>)
608 <p />&nbsp;
609 <p />Search for a specific CVE in Ubuntu (CVE-YYYY-NNNN): <form method="GET"><input name="cve" type="text" /></form>
610diff --git a/scripts/html/top/priority.html b/scripts/html/top/priority.html
611index d339e9f..4fa80b7 100644
612--- a/scripts/html/top/priority.html
613+++ b/scripts/html/top/priority.html
614@@ -33,7 +33,6 @@
615 <li class="nav-item"><a class="nav-link" href=".">Home</a></li>
616 <li class="nav-item"><a class="nav-link" href="main.html">Main</a></li>
617 <li class="nav-item"><a class="nav-link" href="universe.html">Universe</a></li>
618- <li class="nav-item"><a class="nav-link" href="partner.html">Partner</a></li>
619 </ul>
620 </div><!--/.nav-collapse -->
621 </nav>
622diff --git a/scripts/html_export.py b/scripts/html_export.py
623index c009a3a..1dc8e29 100755
624--- a/scripts/html_export.py
625+++ b/scripts/html_export.py
626@@ -67,7 +67,6 @@ def html_header(title, description, outfd):
627 <li class="nav-item"><a class="nav-link" href="..">Home</a></li>
628 <li class="nav-item"><a class="nav-link" href="../main.html">Main</a></li>
629 <li class="nav-item"><a class="nav-link" href="../universe.html">Universe</a></li>
630- <li class="nav-item"><a class="nav-link" href="../partner.html">Partner</a></li>
631 </ul>
632 </div><!--/.nav-collapse -->
633 </nav>
634diff --git a/scripts/monthly-report b/scripts/monthly-report
635index 37757d6..939d483 100755
636--- a/scripts/monthly-report
637+++ b/scripts/monthly-report
638@@ -19,9 +19,6 @@
639 # For all the supported packages in Ubuntu, there are 67 medium-priority
640 # issues and 206 low issues that need to be fixed in 142 packages.
641 #
642-# For all partner packages in Ubuntu, there is 1 medium-priority issue
643-# that needs to be fixed in 1 package.
644-#
645 # For all community-supported packages in Ubuntu, there are 7 high-priority
646 # issues, 721 medium-priority, and 1005 low-priority issues that need to be
647 # fixed in 686 packages.
648diff --git a/scripts/packages-mirror b/scripts/packages-mirror
649index 71413a6..f053ff0 100755
650--- a/scripts/packages-mirror
651+++ b/scripts/packages-mirror
652@@ -26,7 +26,6 @@ Usage: packages_mirror [OPTIONS]
653 -V even more verbose output
654 -r RELEASE only update Ubuntu release
655 -A pull only release pocket for the devel release
656- -p pull only partner
657 -u pull only ubuntu archive
658 EOM
659 }
660@@ -42,7 +41,6 @@ verbosity_args="-q"
661 only_release=
662 devel_quick_pockets=
663 very_verbose=""
664-only_partner="no"
665 only_ubuntu="no"
666
667 while getopts "AwhftvVpur:" opt
668@@ -56,7 +54,6 @@ do
669 very_verbose="yes";;
670 A) devel_quick_pockets="yes";;
671 r) only_release="$OPTARG";;
672- p) only_partner="yes";;
673 u) only_ubuntu="yes";;
674 h) help ; exit 0;;
675 ?) help;;
676@@ -73,7 +70,7 @@ debian=${debian:-ftp.debian.org}
677 # shellcheck disable=SC1091
678 . "$HOME"/.ubuntu-cve-tracker.conf
679
680-for var in packages_mirror debian_mirror partner_mirror; do
681+for var in packages_mirror debian_mirror; do
682 if [ -z "${!var}" ]; then
683 echo "'$var' not defined in ~/.ubuntu-cve-tracker.conf" >&2
684 exit 1
685@@ -87,23 +84,6 @@ mkdir -p "$outPath"
686 debianPath=$debian_mirror
687 mkdir -p "$debianPath"
688
689-# shellcheck disable=SC2154
690-partnerPath=$partner_mirror
691-mkdir -p "$partnerPath"
692-
693-partner_dir_excludes=$(PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}$(dirname "$0")" python3 -c '#
694-import cve_lib, sys
695-s = ""
696-for r in cve_lib.eol_releases + ["breezy", "warty", "hoary"]:
697- if r in ["dapper", "breezy", "warty", "hoary"]: # http://archive.canonical.com/dists/ does not have these any more
698- continue
699- # Dont exclude ESM releases
700- if r in ["trusty", "xenial"]:
701- continue
702- s += "dists/%s*/," % r
703-sys.stdout.write(s.rstrip(","))
704-')
705-
706 function compressed_ext()
707 {
708 rel="$1"
709@@ -286,56 +266,54 @@ function do_use_timestamp() {
710 return 1
711 }
712
713-if [ "$only_partner" = "no" ]; then
714- timestamp="${outPath}.timestamp"
715- if [ ! -e "${outPath}/dists" ] || do_use_timestamp "$timestamp" ; then
716- pull=$(mktemp -t packages-XXXXXX)
717- # shellcheck disable=SC2064
718- trap "rm -f $pull" EXIT HUP INT QUIT TERM
719+timestamp="${outPath}.timestamp"
720+if [ ! -e "${outPath}/dists" ] || do_use_timestamp "$timestamp" ; then
721+ pull=$(mktemp -t packages-XXXXXX)
722+ # shellcheck disable=SC2064
723+ trap "rm -f $pull" EXIT HUP INT QUIT TERM
724
725- # Sync Packages for non-ports supported arches
726- if [ "$verbosity_args" != "-q" ]; then
727- echo "Generating arch lists"
728- fi
729- # shellcheck disable=SC2129
730- gen_packages trusty "amd64 i386" >> "$pull"
731- gen_packages xenial "amd64 i386" >> "$pull"
732- gen_packages bionic "amd64 i386" >> "$pull"
733- gen_packages focal "amd64 i386" >> "$pull"
734- gen_packages jammy "amd64 i386" >> "$pull"
735- gen_packages kinetic "amd64 i386" >> "$pull"
736- gen_packages lunar "amd64 i386" >> "$pull"
737- gen_packages mantic "amd64 i386" >> "$pull"
738-
739- # don't bother to pull duplicates
740- sort -u "$pull" > "$pull.sorted" && mv "$pull.sorted" "$pull"; rm -f "$pull.sorted"
741- pull_packages "$pull" "$server/ubuntu" || echo "FAIL: supported architectures" >&2
742- cat /dev/null > "$pull"
743-
744- # Sync Packages for ports arches
745- if [ "$verbosity_args" != "-q" ]; then
746- echo "Generating ports arch lists"
747- fi
748- # shellcheck disable=SC2129
749- gen_packages trusty "powerpc ppc64el armhf arm64" >> "$pull"
750- gen_packages xenial "powerpc ppc64el armhf arm64 s390x" >> "$pull"
751- gen_packages bionic "ppc64el armhf arm64 s390x" >> "$pull"
752- gen_packages focal "ppc64el armhf arm64 s390x riscv64" >> "$pull"
753- gen_packages jammy "ppc64el armhf arm64 s390x riscv64" >> "$pull"
754- gen_packages kinetic "ppc64el armhf arm64 s390x riscv64" >> "$pull"
755- gen_packages lunar "ppc64el armhf arm64 s390x riscv64" >> "$pull"
756- gen_packages mantic "ppc64el armhf arm64 s390x riscv64" >> "$pull"
757-
758- # don't bother to pull duplicates
759- sort -u "$pull" > "$pull.sorted" && mv "$pull.sorted" "$pull"; rm -f "$pull.sorted"
760- pull_packages "$pull" "$ports/ubuntu-ports" || echo "FAIL: ports architectures" >&2
761- cat /dev/null > "$pull"
762-
763- if [ "$use_timestamp" = "yes" ]; then
764- touch "$timestamp"
765- else
766- rm -f "$timestamp"
767- fi
768+ # Sync Packages for non-ports supported arches
769+ if [ "$verbosity_args" != "-q" ]; then
770+ echo "Generating arch lists"
771+ fi
772+ # shellcheck disable=SC2129
773+ gen_packages trusty "amd64 i386" >> "$pull"
774+ gen_packages xenial "amd64 i386" >> "$pull"
775+ gen_packages bionic "amd64 i386" >> "$pull"
776+ gen_packages focal "amd64 i386" >> "$pull"
777+ gen_packages jammy "amd64 i386" >> "$pull"
778+ gen_packages kinetic "amd64 i386" >> "$pull"
779+ gen_packages lunar "amd64 i386" >> "$pull"
780+ gen_packages mantic "amd64 i386" >> "$pull"
781+
782+ # don't bother to pull duplicates
783+ sort -u "$pull" > "$pull.sorted" && mv "$pull.sorted" "$pull"; rm -f "$pull.sorted"
784+ pull_packages "$pull" "$server/ubuntu" || echo "FAIL: supported architectures" >&2
785+ cat /dev/null > "$pull"
786+
787+ # Sync Packages for ports arches
788+ if [ "$verbosity_args" != "-q" ]; then
789+ echo "Generating ports arch lists"
790+ fi
791+ # shellcheck disable=SC2129
792+ gen_packages trusty "powerpc ppc64el armhf arm64" >> "$pull"
793+ gen_packages xenial "powerpc ppc64el armhf arm64 s390x" >> "$pull"
794+ gen_packages bionic "ppc64el armhf arm64 s390x" >> "$pull"
795+ gen_packages focal "ppc64el armhf arm64 s390x riscv64" >> "$pull"
796+ gen_packages jammy "ppc64el armhf arm64 s390x riscv64" >> "$pull"
797+ gen_packages kinetic "ppc64el armhf arm64 s390x riscv64" >> "$pull"
798+ gen_packages lunar "ppc64el armhf arm64 s390x riscv64" >> "$pull"
799+ gen_packages mantic "ppc64el armhf arm64 s390x riscv64" >> "$pull"
800+
801+ # don't bother to pull duplicates
802+ sort -u "$pull" > "$pull.sorted" && mv "$pull.sorted" "$pull"; rm -f "$pull.sorted"
803+ pull_packages "$pull" "$ports/ubuntu-ports" || echo "FAIL: ports architectures" >&2
804+ cat /dev/null > "$pull"
805+
806+ if [ "$use_timestamp" = "yes" ]; then
807+ touch "$timestamp"
808+ else
809+ rm -f "$timestamp"
810 fi
811 fi
812
813@@ -348,7 +326,7 @@ if [ "$only_ubuntu" = "no" ]; then
814 fi
815
816 # TODO: add Debian support for -r
817- if [ -z "$only_release" ] && [ "$only_partner" = "no" ]; then
818+ if [ -z "$only_release" ]; then
819 # Sync Sources from Debian testing
820 timestamp="${debianPath}.timestamp"
821 if [ ! -e "${debianPath}/dists" ] || do_use_timestamp "$timestamp" 6 ; then
822@@ -368,37 +346,9 @@ if [ "$only_ubuntu" = "no" ]; then
823 fi
824 fi
825 fi
826-
827- if [ -z "$only_release" ] || [ "$only_partner" = "yes" ]; then
828- # Sync Canonical Partner Repo
829- timestamp="${partnerPath}.timestamp"
830- if [ ! -e "${partnerPath}/dists" ] || do_use_timestamp "$timestamp" 6 ; then
831- cd "$partnerPath"
832- misc_partner_excludes="robots.txt,misc/,project/,icons/,ls-lR.gz"
833- wget $verbosity_args -N -R '*=*' -R 'Contents*' -X "${misc_partner_excludes},${partner_dir_excludes}" -np -r http://archive.canonical.com/dists/
834-
835- ln -sf archive.canonical.com/dists dists
836- # remove dangling symlink
837- rm -f archive.canonical.com/dists/dists || true
838-
839- # remove dists.[0-9] files
840- rm -f archive.canonical.com/dists.[0-9]*
841-
842- if [ "$use_timestamp" = "yes" ]; then
843- touch "$timestamp"
844- else
845- rm -f "$timestamp"
846- fi
847- has_sources=$(find archive.canonical.com/dists -name Sources$)
848- if [ -n "$has_sources" ]; then
849- echo ""
850- echo "WARNING: $partnerPath has Sources files! These should be removed now that -partner uses Sources.gz"
851- fi
852- fi
853- fi
854 fi
855
856 # generate source package lists for umt grep
857-for path in "$outPath" "$debianPath" "$partnerPath"; do
858+for path in "$outPath" "$debianPath"; do
859 find "$path" -name Sources.gz -exec zgrep '^Package: .*' {} \; | cut -c10- | sort -u > "$path/sources"
860 done
861diff --git a/scripts/report-todo-numbers b/scripts/report-todo-numbers
862index 32b7d1f..502b5b1 100755
863--- a/scripts/report-todo-numbers
864+++ b/scripts/report-todo-numbers
865@@ -45,7 +45,7 @@ only_packages = []
866 if opt.only_packages:
867 only_packages = re.split(',', opt.only_packages)
868
869-for category in ['supported','partner','universe']:
870+for category in ['supported','universe']:
871 item[category] = dict()
872 srcpkg_item[category] = dict()
873
874@@ -63,9 +63,6 @@ for category in ['supported','partner','universe']:
875 if 'SUPPORTED' in line:
876 if category != 'supported':
877 continue
878- elif 'PARTNER' in line:
879- if category != 'partner':
880- continue
881 elif category != 'universe':
882 continue
883
884@@ -131,8 +128,6 @@ for category in ['supported','partner','universe']:
885 else:
886 if category == 'supported':
887 print " * For all the supported packages in Ubuntu, there",
888- elif category == 'partner':
889- print " * For all partner packages in Ubuntu, there",
890 elif category == 'universe':
891 print " * For all community-supported packages in Ubuntu, there",
892 if opt.show_unique_sources:
893diff --git a/scripts/report-todo-plot b/scripts/report-todo-plot
894index e5faa4a..d59014f 100755
895--- a/scripts/report-todo-plot
896+++ b/scripts/report-todo-plot
897@@ -13,7 +13,7 @@ TABLE=$(./scripts/ubuntu-table -s "$@")
898 for category in ${CATEGORY:-SUPPORTED}
899 do
900 if [ "x$category" = "xuniverse" ]; then
901- filter="-v '(SUPPORTED|PARTNER)'"
902+ filter="-v 'SUPPORTED'"
903 else
904 filter=$category
905 fi
906diff --git a/scripts/source_map.py b/scripts/source_map.py
907index 4ff605e..05e258b 100755
908--- a/scripts/source_map.py
909+++ b/scripts/source_map.py
910@@ -48,10 +48,9 @@ def read_config_file(config_file):
911
912 def _find_sources(pockets=None, releases=None, skip_eol_releases=True, arch='amd64'):
913 config = read_config_file(os.path.expanduser("~/.ubuntu-cve-tracker.conf"))
914- if 'packages_mirror' in config and 'partner_mirror' in config:
915+ if 'packages_mirror' in config:
916 cve_lib.check_mirror_timestamp(config)
917 return _find_from_mirror(config['packages_mirror'],
918- config['partner_mirror'],
919 'sources',
920 pockets=pockets,
921 releases=releases,
922@@ -63,10 +62,9 @@ def _find_sources(pockets=None, releases=None, skip_eol_releases=True, arch='amd
923
924 def _find_packages(pockets=None, releases=None, skip_eol_releases=True, arch='amd64'):
925 config = read_config_file(os.path.expanduser("~/.ubuntu-cve-tracker.conf"))
926- if 'packages_mirror' in config and 'partner_mirror' in config:
927+ if 'packages_mirror' in config:
928 cve_lib.check_mirror_timestamp(config)
929 return _find_from_mirror(config['packages_mirror'],
930- config['partner_mirror'],
931 'packages',
932 pockets=pockets,
933 releases=releases,
934@@ -102,7 +100,7 @@ def load_debian(basedir, data_type='sources'):
935 return debian_sources
936
937
938-def _find_from_mirror(ubuntu, canonical, data_type, arch='amd64', pockets=None, releases=None, skip_eol_releases=True):
939+def _find_from_mirror(ubuntu, data_type, arch='amd64', pockets=None, releases=None, skip_eol_releases=True):
940 if data_type not in ['sources', 'packages']:
941 raise ValueError("'data_type' should be either 'sources' or 'packages'")
942
943@@ -138,9 +136,6 @@ def _find_from_mirror(ubuntu, canonical, data_type, arch='amd64', pockets=None,
944 # free
945 for pocket in pockets:
946 for section in sections:
947- if section == 'partner':
948- # handled separately below
949- continue
950 if data_type == 'sources':
951 fn = os.path.join(ubuntu, 'dists', series + pocket, section,
952 'source', 'Sources')
953@@ -162,40 +157,6 @@ def _find_from_mirror(ubuntu, canonical, data_type, arch='amd64', pockets=None,
954 name = ''
955
956 collection += [(fn, rel, name, section)]
957- # partner
958- pocket = ''
959- section = 'partner'
960-
961- if data_type == 'sources':
962- fn = os.path.join(canonical, 'dists', series + pocket, section,
963- 'source', 'Sources')
964- else:
965- fn = os.path.join(canonical, 'dists', series + pocket, section,
966- 'binary-%s' % arch, 'Packages')
967-
968- found, fn_path = _find_path_with_ext(fn)
969- if not found:
970- # Only warn about missing partner for devel release
971- # FIXME: 2020-04-29: disabled partner warning for dev for now
972- # FIXME: 2021-04-24: disabling for both devel and hirsute;
973- # looks like mirroring on people.c.c stopped?
974- if rel == cve_lib.devel_release or rel in ['hirsute', 'impish', 'jammy', 'kinetic', 'lunar']:
975- prefreeze = os.path.join(canonical, 'dists', '%s-series' % rel[0])
976- prefreeze
977- #if not os.path.isdir(prefreeze):
978- # print(sys.stderr, "WARNING: missing partner mirror element: %s" % (fn), file=sys.stderr)
979- # else:
980- # print("WARNING: found prefreeze element: %s" % (prefreeze), file=sys.stderr)
981- else:
982- missing += " %s\n" % (fn)
983- errors = True
984- continue
985- else:
986- fn = fn_path
987-
988- if section not in sections:
989- continue
990- collection += [(fn, rel, pocket, section)]
991
992 if errors:
993 raise NameError("Missing mirror elements:\n" + missing)
994@@ -244,12 +205,6 @@ def _find_sources_from_apt(pockets=None, releases=None):
995 not (rel == cve_lib.devel_release and pocket in ['-updates', '-security']):
996 missing += " deb-src http://archive.ubuntu.com/ubuntu %s%s %s\n" % (rel, pocket, ' '.join(cve_lib.components))
997 errors = True
998- for component in ['partner']:
999- # partner doesn't get the devel release treatment until late in
1000- # the cycle
1001- if '%s_%s' % (rel, component) not in saw and not (rel == cve_lib.devel_release) and not cve_lib.release_has_partner(rel):
1002- missing += " deb-src http://archive.canonical.com/ubuntu %s %s\n" % (rel, component)
1003- errors = True
1004 if errors:
1005 raise NameError("Missing /etc/apt/sources.list lines:\n%s" % (missing))
1006
1007diff --git a/scripts/ubuntu-table b/scripts/ubuntu-table
1008index eeb633c..b1651c0 100755
1009--- a/scripts/ubuntu-table
1010+++ b/scripts/ubuntu-table
1011@@ -232,7 +232,6 @@ for cve in sorted(cves):
1012 action_needed = False # A package in any release needs updating
1013 released = False # A package in any release has been fixed
1014 supported = False # A package in any release is supported and needs to be fixed
1015- partner = False # A package in any release is partner-supplied
1016 universe = False # A package in any release is in universe and needs to be fixed
1017
1018 mark = dict()
1019@@ -272,10 +271,6 @@ for cve in sorted(cves):
1020 if pkg_rel_supported:
1021 supported = True
1022
1023- # A partner issue?
1024- if cve_lib.is_partner(map, pkg, rel):
1025- partner = True
1026-
1027 if opt.debug:
1028 print("%s: %s: %s (%s, released:%d)" % (cve, pkg, table[cve][pkg][rel], rel, released), file=sys.stderr)
1029
1030@@ -317,9 +312,7 @@ for cve in sorted(cves):
1031 print('<td style="font-size: small;"><a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=%s">Mitre</a> <a href="https://launchpad.net/bugs/cve/%s">LP</a> <a href="http://security-tracker.debian.org/tracker/%s">Debian</a></td>' % (quote(cve), quote(cve), quote(cve)), end=' ')
1032 print('<td>', end=' ')
1033 if opt.supported:
1034- if partner:
1035- print('<p>PARTNER</p>', end=' ')
1036- elif supported:
1037+ if supported:
1038 print('<p>SUPPORTED</p>', end=' ')
1039 if universe:
1040 print('<p>UNIVERSE</p>', end=' ')
1041@@ -348,9 +341,7 @@ for cve in sorted(cves):
1042 if action_needed and released:
1043 print('[out of sync]', end=' ')
1044 if opt.supported:
1045- if partner:
1046- print('PARTNER', end=' ')
1047- elif supported:
1048+ if supported:
1049 print('SUPPORTED', end=' ')
1050 if universe:
1051 print('UNIVERSE', end=' ')

Subscribers

People subscribed via source and target branches