When container is built, Freshmaker checks if the RPMs in a container match the versions in Errata advisory. This is here to ensure that the container image contains the fixed packages.
Errata advisory can contain multiple versions of the same package, for example foo-1-1 and foo-2-1. In this case, Freshmaker always marked the build as failed, because it didn't count with the same package appearing twice in the advisory.
With this PR, Freshmaker groups NVRs from advisory based on their names and marks the build as failed only if the container image has package in a version not appearing in advisory.
When container is built, Freshmaker checks if the RPMs in a container match the versions in Errata advisory. This is here to ensure that the container image contains the fixed packages.
Errata advisory can contain multiple versions of the same package, for example foo-1-1 and foo-2-1. In this case, Freshmaker always marked the build as failed, because it didn't count with the same package appearing twice in the advisory.
With this PR, Freshmaker groups NVRs from advisory based on their names and marks the build as failed only if the container image has package in a version not appearing in advisory.