Bug 33168: Prevent debhelper from renaming history.txt to changelog

This change prevents debhelper from renaming history.txt to changelog,
since that renaming was breaking the Timeline feature in Koha.

Another option would've been to rename history.txt to something else
but that filename is already embedded in Koha and the Koha release
tools, so this seems the safer option.

Test plan:
0. Apply patch
1. Build Debian package
2. Confirm that /usr/share/doc/koha-common/history.txt is created
and /usr/share/doc/koha-common/changelog.gz is not created

Signed-off-by: Mason James <mtj@kohaaloha.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit b6f9241d66)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
David Cook 2023-03-21 23:09:20 +00:00 committed by Matt Blenkinsop
parent 1b0486c44b
commit 3b6aac190c

4
debian/rules vendored
View file

@ -46,3 +46,7 @@ override_dh_auto_install:
override_dh_compress:
# exclude history.txt from compression as about.pl needs it uncompressed
dh_compress --exclude=history.txt --exclude=contributors.yaml --exclude=teams.yaml
override_dh_installchangelogs:
# Debian Buster onwards renames history.txt to changelog which breaks Koha's timeline feature
dh_installchangelogs --exclude=history.txt