Project

Profile

Help

Issue #6383

closed

Creating a publication fails when packages are included multiple times

Added by quba42 over 4 years ago. Updated over 3 years ago.

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

Revision db37ee32 | View on GitHub

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.

Actions #2

Updated by quba42 over 4 years ago

  • Status changed from NEW to POST
Actions #3

Updated by quba42 over 4 years ago

  • Status changed from POST to MODIFIED
Actions #4

Updated by quba42 over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF