Issue #5379
closedpool locations should be handled automatically and dirhashed
Description
Currently when adding content you must tell the pulp_deb plugin what the relative path is. While the ability to specify this is useful, by default, it should create hashed pool directories ala the debian/ubuntu official repos:
http://archive.ubuntu.com/ubuntu/pool/
I would expect to add content called `foo_1.0-1_amd64.deb` and at the very least have the default path be:
pool/f/foo_1.0-1_amd64.deb
In a typical apt repo, it would be something like:
apt/pool/$distribution/f/foo_1.0-1_amd64.deb
But I think Pulp would prefer packages to be able to be associated with multiple repos, thus having the distribution not be part of the content path makes sense.
Updated by mdellweg about 5 years ago
OK, this one is a little bit odd: There are two publication mechanisms in pulp_deb.
1 Verbatim publication: All files (from all content) are published in the path specified as relative_path; metadata is not generated, but forwarded. That way, you can mirror an upsteam repo (including the original signatures).
2. Simple publication: All packages are published in a single repo component. This time, the publication paths for the packages are generated in the way you described. Metadata is generated (and hopefully in the future signed).
A more complex method for publishing is planned, but it is yet to be determined how to save the necessary data.
Added by mdellweg about 5 years ago
Updated by mdellweg about 5 years ago
- Status changed from NEW to MODIFIED
Applied in changeset 2ae13eb7c09fa5bc07bc270bed32bcaa85c54117.
Updated by quba42 over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Add file upload functionality to content types
re #5403 https://pulp.plan.io/issues/5403 fixes #5487 https://pulp.plan.io/issues/5487 fixes #5371 https://pulp.plan.io/issues/5371 fixes #5376 https://pulp.plan.io/issues/5376 fixes #5379 https://pulp.plan.io/issues/5379
Required PR: https://github.com/pulp/pulpcore-plugin/pull/122