From 330c63e67d33115ab71f8a12780c8c30920a5b3f Mon Sep 17 00:00:00 2001 From: Steve McIntyre Date: Sat, 6 Jul 2019 11:19:02 +0100 Subject: [PATCH] Tweak recompress code --- tools/make_disc_trees.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/make_disc_trees.pl b/tools/make_disc_trees.pl index 7c54b1d6..ca3a7988 100755 --- a/tools/make_disc_trees.pl +++ b/tools/make_disc_trees.pl @@ -647,13 +647,13 @@ sub recompress { # Packages and Sources files; workaround for bug #402482 if ($filename =~ m/\/.*\/(Packages|Sources)$/o) { - print LOG "Recompressing $filename\n"; + system("rm -f $_.gz"); system("gzip -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)) { - print LOG "Recompressing $filename\n"; + system("rm -f $_.gz"); system("gzip -9c < $_ >$_.gz"); } }