Comment 0 for bug 1892523

Revision history for this message
Albert Kolozsvari (albertkol) wrote :

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:
```python3
'tags': {
    'linux-armadaxp': {'not-ue'},
    'linux-lts-quantal': {'not-ue'},
    'linux-lts-saucy': {'not-ue'}
},
```

While patches are separate items of the cve dict:
```python3
 '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:
```python3
'patches': {
    'linux-ec2': {''},
    'linux-mvl-dove': {''},
    'linux-ti-omap4': {''}
},
```