Skip to content
Snippets Groups Projects

WIP: Also search .deb for changelog in /u/s/d/$source/

Closed Stuart Prescott requested to merge stuart/python-debian:tmp/source-changelog into master

A non-native Debian package must include its changelog in /usr/share/doc/

package/changelog.Debian.gz. Finding that in the .deb can be difficult as in practice /usr/share/doc/
package or /usr/share/doc/$package/changelog.Debian.gz might be a symlink.

In https://bugs.debian.org/875305, the submitter notes that this makes programmatic changelog extraction difficult and that the DebFile.changelog() method fails with packages such as perl-base in releases up to buster. The suggestion is made to search in /usr/share/doc/$sourcepackage. These patches were originally posted to the bug and are incorporated here for discussion. (A little bit of tweaking to add to cope with other code changes in debfile.py.)

However, looking carefully at Policy, using the source package name appears to be the wrong things to do, and that DebFile.changelog() should instead attempt to follow symlinks within the package.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading