latest released version of "foo" image is "foo-1-1"
latest released version of "bar-1-1" image depends on unreleased "foo-1-2".
There were two issues which this PR fixes:
The deduplication code decided that we will rebuild "foo-1-2" both as dependency of "bar-1-1" and also as standalone image. This was wrong, because "foo-1-2" was never released and therefore we should not build that version as standalone image.
The unreleased "foo-1-2" was not in any container repository and therefore the content_sets were not set properly for it and the build failed.
This PR fixes the issues following way:
The deduplication code now checks what is the latest released NVR of "foo" and and deduplicates only NVRs which are lower than that. That means that we will rebuild "foo-1-1" as standalone image in our case and "bar" will be rebuilt against "foo-1-2".
If the unreleased version of image is found, the content_sets are copied from the released ones.
This PR handles following situation:
There were two issues which this PR fixes:
This PR fixes the issues following way: