cve_lib patches structure

Bug #1892523 reported by Albert Kolozsvari on 2020-08-21
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu CVE Tracker

Bug Description

I working with `scripts/`. I am trying to fetch the CVE's tags and patches and send them to

I couldn't help noticing the different way `cve_lib` returns `tags` (or `pkg`) and how it returns `patches`.

I am using CVE-2012-4542 as an example.

Tags are returned nicely like this:
'tags': {
    'linux-armadaxp': {'not-ue'},
    'linux-lts-quantal': {'not-ue'},
    'linux-lts-saucy': {'not-ue'}

While patches are separate items of the cve dict:
 'Patches_linux-ec2': '',
 'Patches_linux-mvl-dove': '',
 'Patches_linux-ti-omap4': '',
 'Patches_linux-lts-backport-maverick': '',
 'Patches_linux-fsl-imx51': '',
 'Patches_linux-lts-backport-oneiric': '',
 'Patches_linux-linaro-omap': '',
 'Patches_linux-linaro-shared': '',
 'Patches_linux-linaro-vexpress': '',
 'Patches_linux-qcm-msm': '',
 'Patches_linux-armadaxp': '',
 'Patches_linux-lts-quantal': 'DNE',

It would be nice if patches would follow a similar structure as tags:
'patches': {
    'linux-ec2': {''},
    'linux-mvl-dove': {''},
    'linux-ti-omap4': {''}

description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers