#402 Find out which pkgs in the advisory fix the CVE
Merged by jkaluza. Opened by gnaponie.
gnaponie/freshmaker pkgs-fix-cve  into  master

Download 402.patch

An RHSA that addresses a specific advisory will contain RPM build(s)
for addressing a specific CVE. Freshmaker uses these RPM build(s) to
find out which images should be rebuilt. In some cases, additional
RPM build(s) are attached to RHSA. These are unrelated to the CVE.
With this change Freshmaker is going to find out which are the pkgs
in the advisory actually fix the CVE.

Signed-off-by: gnaponie gnaponie@redhat.com

Are we expecting anything other than IndexError here?

I'm missing where affected_pkgs is actually used.

I'm missing where affected_pkgs is actually used.

That will be in next PR. I've advised to split these into two PRs to make them smaller and more focused.

I think the pkg_name should be set to pkg.split('/')[-1], because in case of modules, the format is product/module_nsvc/pkg_name. We should still return pkg_name in this case.

I think I found one issue in parsing, otherwise it looks good.

It will be used in the next PR related to FACTORY-3527. The card is supposed to have 2 PRs.

edit: ups. Sorry I saw Jan's comment after posting this one.

rebased onto 33e37aabf518feeb88c667366af395529882c40d

rebased onto 54b34cc8d8110f106c59158c67dfdc82b05f3e37

Ok, I've addressed the comments. Thanks for the reviews.

Commit 7f7954a3 fixes this pull-request

Pull-Request has been merged by jkaluza

Pull-Request has been merged by jkaluza

Metadata