Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publishing a source package that belongs to two dists raises IntegrityError #1053

Closed
daviddavis opened this issue Mar 25, 2024 · 2 comments · Fixed by #1054
Closed

Publishing a source package that belongs to two dists raises IntegrityError #1053

daviddavis opened this issue Mar 25, 2024 · 2 comments · Fixed by #1054
Labels
.bugfix CHANGES/<issue_number>.bugfix

Comments

@daviddavis
Copy link
Contributor

Steps to reproduce:

  1. Create a source package
  2. Add it to two dists in a repo
  3. Publish the repo.

You'll get an IntegrityError. Basically the source package publish code needs something similar to this line:

with suppress(IntegrityError):

daviddavis added a commit to daviddavis/pulp_deb that referenced this issue Mar 25, 2024
Handle a source package publish IntegrityError when a source package
belongs to multiple dists.

fixes pulp#1053
daviddavis added a commit to daviddavis/pulp_deb that referenced this issue Mar 25, 2024
Handle a source package publish IntegrityError when a source package
belongs to multiple dists.

fixes pulp#1053
@quba42
Copy link
Collaborator

quba42 commented Mar 26, 2024

Sounds plausible given we had the exact same thing with binary packages.

@quba42 quba42 added .bugfix CHANGES/<issue_number>.bugfix and removed Triage-Needed labels Mar 26, 2024
@hstct
Copy link
Contributor

hstct commented Mar 26, 2024

Yea seems like one the things we missed when reviewing the source package PR

daviddavis added a commit to daviddavis/pulp_deb that referenced this issue Apr 4, 2024
Handle a source package publish IntegrityError when a source package
belongs to multiple dists.

fixes pulp#1053
daviddavis added a commit to daviddavis/pulp_deb that referenced this issue Apr 4, 2024
Handle a source package publish IntegrityError when a source package
belongs to multiple dists.

fixes pulp#1053
daviddavis added a commit to daviddavis/pulp_deb that referenced this issue Apr 9, 2024
Handle a source package publish IntegrityError when a source package
belongs to multiple dists.

fixes pulp#1053
hstct added a commit that referenced this issue Apr 11, 2024
Handle a source package publish IntegrityError when a source package
belongs to multiple dists.

fixes #1053

(cherry picked from commit 9e2a196)
hstct pushed a commit that referenced this issue Apr 11, 2024
Handle a source package publish IntegrityError when a source package
belongs to multiple dists.

fixes #1053

(cherry picked from commit 0ee3fc3)
hstct pushed a commit that referenced this issue Apr 24, 2024
Handle a source package publish IntegrityError when a source package
belongs to multiple dists.

fixes #1053

(cherry picked from commit 0ee3fc3)
adrianabedon pushed a commit to adrianabedon/pulp_deb that referenced this issue Apr 24, 2024
Handle a source package publish IntegrityError when a source package
belongs to multiple dists.

fixes pulp#1053
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.bugfix CHANGES/<issue_number>.bugfix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants