[Pulp-dev] Uniqueness constraints on Content in Pulp 3

Simon Baatz gmbnomis at gmail.com
Tue Nov 13 22:59:30 UTC 2018

On Tue, Nov 13, 2018 at 02:38:33PM -0500, David Davis wrote:
>    I want to point out that the RPM example is not correct. RPMs are
>    unique in Pulp by checksum (aka pkgId in our code and createrepo_c):
>    [1]https://github.com/pulp/pulp_rpm/blob/44f97560533379ad8680055edff9c3
>    c5bd4e859f/pulp_rpm/app/models.py#L223
>    Therefore Pulp can store two packages with the same
>    name-epoch-version-arch (NEVRA) as you would in the case where there is
>    a signed and unsigned RPM with the same NEVRA.

I missed that pkgId is the former Pulp 2 checksum.  Thanks for
pointing that out!

Thus, pulp_rpm seems to be in the "pulp_file camp" as well.  Does
pulp_rpm prevent that two such packages (same NEVRA, different
checksum) end up in one repo version/one publication?

More information about the Pulp-dev mailing list