pulp / pulp_deb

Debian repository plugin for Pulp (pulpproject.org)
GNU General Public License v2.0
61 stars 76 forks source link

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

Closed daviddavis closed 2 months ago

daviddavis commented 3 months ago

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:

https://github.com/pulp/pulp_deb/blob/106f1489120bebff4bfe012356bdbc8065d8d17b/pulp_deb/app/tasks/publishing.py#L302

quba42 commented 3 months ago

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

hstct commented 3 months ago

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