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': {''}
},
```
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: armadaxp' : {'not-ue'}, lts-quantal' : {'not-ue'}, lts-saucy' : {'not-ue'}
```python3
'tags': {
'linux-
'linux-
'linux-
},
```
While patches are separate items of the cve dict: linux-ec2' : '', linux-mvl- dove': '', linux-ti- omap4': '', linux-lts- backport- maverick' : '', linux-fsl- imx51': '', linux-lts- backport- oneiric' : '', linux-linaro- omap': '', linux-linaro- shared' : '', linux-linaro- vexpress' : '', linux-qcm- msm': '', linux-armadaxp' : '', linux-lts- quantal' : 'DNE',
```python3
'Patches_
'Patches_
'Patches_
'Patches_
'Patches_
'Patches_
'Patches_
'Patches_
'Patches_
'Patches_
'Patches_
'Patches_
```
It would be nice if patches would follow a similar structure as tags: mvl-dove' : {''}, ti-omap4' : {''}
```python3
'patches': {
'linux-ec2': {''},
'linux-
'linux-
},
```