Actions
Issue #6383
closedCreating a publication fails when packages are included multiple times
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Debian:
Platform Release:
Target Release - Debian:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
It is perfectly permissible for multiple Debian distributions to be included in the same repository. In such cases, it is perfectly possible for these distributions to include the exact same pool package.
However pulp will throw an IntegrityError during publish, since it cannot publish to the same location (relative path) multiple times.
A simple solution is to handle the error.
It is safe to ignore it completely, if we are also enforcing uniqueness of name plus arch plus version of packages per repository. Then these duplicates can only happen because the exact same package is included multiple times.
Added by quba42 over 4 years ago
Updated by quba42 over 4 years ago
- Status changed from POST to MODIFIED
Applied in changeset db37ee32594fd27dd228914a1680631081c990fb.
Updated by quba42 over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Skip duplicate packages during publish
fixes #6383 https://pulp.plan.io/issues/6383
If we are enforcing uniqueness of name plus arch plus version of packages per repository, then these duplicates can only happen because the exact same package is included in multiple distributions, in which case it is safe to ignore the duplicates.