Merge ~litios/ubuntu-cve-tracker:components-for-esm into ubuntu-cve-tracker:master
Proposed by
David Fernandez Gonzalez
Status: | Merged |
---|---|
Merged at revision: | 989f028f22e7a6f5f2af6e6fa0484d7c65788c17 |
Proposed branch: | ~litios/ubuntu-cve-tracker:components-for-esm |
Merge into: | ubuntu-cve-tracker:master |
Diff against target: |
107 lines (+56/-7) 2 files modified
scripts/cve_lib.py (+42/-6) scripts/source_map.py (+14/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alex Murray | Approve | ||
Eduardo Barretto | Approve | ||
Review via email: mp+436335@code.launchpad.net |
Description of the change
Right now, umt tooling will report that "main" is the component for all packages in ESM releases. This recently caused an issue while building a package because of dependency resolution.
This MR tries to approach this issue by looking at the original release to find out which the real component is.
To post a comment you must log in.
$ python3 is_supported( srcmap, "ffmpeg", "esm-apps/bionic") is_supported( srcmap, "ffmpeg", "bionic") 'app-engine/ focal'] ['python2. 7']) 'bitglass- django/ xenial' ]['u-msgpack- python' ])
Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import source_map;import cve_lib; srcmap = source_map.load()
>>> cve_lib.
True
>>> cve_lib.
False
>>> print(srcmap[
{'pocket': '', 'section': 'universe'}
>>> print(srcmap[
{'pocket': '', 'section': 'main'}
$ umt search python2.7
Running search command.
Ubuntu packages:
trusty/esm: 2.7.6-8ubuntu0. 6+esm13, Pocket: release, Component: main 1ubuntu0~ 16.04.18+ esm3, Pocket: release, Component: main 1~20.04. 3+esm1, Pocket: release, Component: universe 13ubuntu1. 1+esm2, Pocket: release, Component: universe 1ubuntu0~ 16.04.18, Pocket: updates, Component: main 1~18.04ubuntu1. 10, Pocket: updates, Component: main
esm-infra/xenial: 2.7.12-
esm-apps/focal: 2.7.18-
esm-apps/jammy: 2.7.18-
trusty: 2.7.6-8ubuntu0.5, Pocket: updates, Component: main
xenial: 2.7.12-
bionic: 2.7.17-
focal: 2.7.18-1~20.04.3, Pocket: updates, Component: universe
jammy: 2.7.18-13ubuntu1.1, Pocket: updates, Component: universe
kinetic: 2.7.18-13ubuntu2, Pocket: release, Component: universe
lunar: 2.7.18-13ubuntu2, Pocket: release, Component: universe
Other packages:
buster: 2.7.16-2+deb10u1, Pocket: release, Component: main
stable: 2.7.18-8, Pocket: release, Component: main
stretch: 2.7.13-2+deb9u6, Pocket: updates, Component: main