Project

Profile

Help

Issue #6383

Creating a publication fails when packages are included multiple times

Added by quba42 7 months ago. Updated 7 months ago.

Status:
MODIFIED
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.

Associated revisions

Revision db37ee32 View on GitHub
Added by quba42 7 months ago

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.

History

#2 Updated by quba42 7 months ago

  • Status changed from NEW to POST

#3 Updated by quba42 7 months ago

  • Status changed from POST to MODIFIED

Please register to edit this issue

Also available in: Atom PDF