cve_lib patches structure

Bug #1892523 reported by Albert Kolozsvari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu CVE Tracker
Fix Released
Undecided
Alex Murray

Bug Description

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

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': {''}
},
```

Related branches

description: updated
Revision history for this message
Alex Murray (alexmurray) wrote :
Changed in ubuntu-cve-tracker:
status: New → In Progress
assignee: nobody → Alex Murray (alexmurray)
Revision history for this message
Steve Beattie (sbeattie) wrote :

This fix was landed in https://git.launchpad.net/ubuntu-cve-tracker/commit/?id=fc1f947b23c1bfe73caa112ef879561b03115b7b , closing.

Thanks for the report and the suggestion. Please let us know if there are other ways we can improve the parsed structure for you or other issues you run across.

Changed in ubuntu-cve-tracker:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.