Avoid embedding timestamps into gzipped Packages and Translations files.

Signed-off-by: Holger Levsen <holger@layer-acht.org>
This commit is contained in:
bauen1 2022-01-09 14:31:44 +01:00 committed by Holger Levsen
parent 6b61e01f15
commit 65196d4dcf
2 changed files with 5 additions and 2 deletions

3
debian/changelog vendored
View File

@ -23,6 +23,9 @@ debian-cd (3.1.36) UNRELEASED; urgency=medium
* Update default CODENAME to bookworm in various places.
Closes: #994121
[ Jonathan Hettwer ]
* Avoid embedding timestamps into gzipped Packages and Translations files.
-- Steve McIntyre <93sam@debian.org> Mon, 26 Jul 2021 01:02:03 +0100
debian-cd (3.1.35) unstable; urgency=medium

View File

@ -656,13 +656,13 @@ sub recompress {
# Packages and Sources files; workaround for bug #402482
if ($filename =~ m/\/.*\/(Packages|Sources)$/o) {
system("rm -f $_.gz");
system("gzip -9c < $_ >$_.gz");
system("gzip --no-name -9c < $_ >$_.gz");
}
# Translation files need to be compressed in .gz format on CD?
if ($filename =~ m/\/.*\/i18n\/(Translation.*)$/o &&
! ($filename =~ m/\/.*\/i18n\/(Translation.*gz)$/o)) {
system("rm -f $_.gz");
system("gzip -9c < $_ >$_.gz");
system("gzip --no-name -9c < $_ >$_.gz");
system("rm -f $_");
}
}