Changelogs field from debian release file

Problem:
A debian package can specify the location of the changelogs files using Changelogs field from the release file: DebianRepository/Format - Debian Wiki. Otherwise apt changelog package_name would return an error for custom repositories: E: Failed to fetch changelog:...
At the moment I saw that the change logs are uploaded by default in the same place like .deb packages.
In code(/pulp_deb/app/models/content/metadata.py#L25C4-L30C55) I’ve saw that the Changelogs field is not supported, please correct me if I’m looking in the wrong place. Using Changelogs would also require to have a specific folder structure, e.g.: Index of /changelogs/pool/main/f/firefox/firefox_36.0+build2-0ubuntu0.14.04.4

It there any way that this can be made with pulp, so that apt changelogs works?

Thanks

For a normal APT distribution this field is unsupported.

You could create a verbatim publication, which would simply mirror the remote release file, along with the Changelogs field. This means that running apt changelog ... should work, but the changelog files would not be served by Pulp, so apt would be accessing the original upstream location, e.g.: https://metadata.ftp-master.debian.org/changelogs/

You can also open a feature request to have Pulp synchronize and serve such changelog locations. However, I would most likely just slap a Looking_for_Contributor tag on it, since I don’t see us working on this in the foreseeable future. Which does not mean you should not do it. Having a list of tickets for valid features that we are not currently working on does have value.

3 Likes

Thanks for the quick response.

Does verbatim publication work also with pulp v2 or it is just in version 3?

If by “pulp v2” you really mean Pulp 2 (as in old Pulp with MongoDB and not Django), then no. If you mean pulp_deb versions 2.* then yes. As in you don’t need pulp_deb 3.0.0+ to create verbatim publications.

I was referring to the Pulp 2(old Pulp with MongoDB).

Thanks for your help.