Merge ~ebarretto/ubuntu-cve-tracker:report-released-packages into ubuntu-cve-tracker:master
Status: | Merged |
---|---|
Merged at revision: | fb2855a30201e6651f31adee23cd9a08c0f554a4 |
Proposed branch: | ~ebarretto/ubuntu-cve-tracker:report-released-packages |
Merge into: | ubuntu-cve-tracker:master |
Diff against target: |
148 lines (+36/-26) 2 files modified
scripts/cve_lib.py (+9/-0) scripts/report-released-packages (+27/-26) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Emilia Torino | Approve | ||
Review via email: mp+401550@code.launchpad.net |
Description of the change
NOTE: This PR SHOULD NOT be merged until we get to work on the metric scripts that use this report.
This PR is intended to prepare for upcoming releases and enhance the report-
1. Add in_universe function to cve_lib:
Even though we have is_universe, it doesn't actually check if srcpkg or binary in universe. So, in order to not break other scripts, adding a new function to check if a srcpkg or binary is in universe was needed.
2. Adapt report-
With 16.04 esm near launch, released-esm and experimental directory will go away, so we needed a better way to track archive updates.
3. Alter report-
The current report-
Changes look good but is difficult to review the code without understanding how is exercised (e.g. I am not familiar with the content of map[rel] [pkg][' section' ] to understand if that's correct) or the impact it could have on whoever is consuming them (e.g. changing packages[pkg] = 1 to packages[pkg] = {}).